refactored some hardcoded css

This commit is contained in:
Daniel Cojocea committed 2024-06-21 13:16:11 -04:00
1 parent 085c036bba
commit f563629e69
5 files changed
+108 -105

No files matched your search

+6 -3
View File
@@ -1,7 +1,8 @@
.edit-profile-form,
.edit-password-form,
.delete-profile-form,
.edit-team-form {
.edit-team-form,
.edit-organization-form {
width: inherit;
}
.edit-profile-form__wrapper,
@@ -11,7 +12,8 @@
.edit-profile-form__wrapper,
.delete-profile-form__wrapper,
.edit-password-form__wrapper,
.edit-team-form__wrapper {
.edit-team-form__wrapper,
.edit-organization-form__wrapper {
display: flex;
flex-direction: row;
justify-content: space-between;
@@ -20,7 +22,8 @@
.edit-profile-form__wrapper h1.MuiTypography-root,
.delete-profile-form__wrapper h1.MuiTypography-root,
.edit-password-form__wrapper h1.MuiTypography-root,
.edit-team-form__wrapper h1.MuiTypography-root {
.edit-team-form__wrapper h1.MuiTypography-root,
.edit-organization-form h1.MuiTypography-root {
font-size: var(--env-var-font-size-medium);
color: var(--env-var-color-2);
font-weight: 600;
+14 -10
View File
@@ -1,10 +1,6 @@
import PropTypes from "prop-types";
import { useState } from "react";
import {
Box,
Tab,
useTheme,
} from "@mui/material";
import { Box, Tab, useTheme } from "@mui/material";
import TabContext from "@mui/lab/TabContext";
import TabList from "@mui/lab/TabList";
import "./index.css";
@@ -32,18 +28,21 @@ const Settings = () => {
return (
<Box
//TODO - need to figure out document sizing
//TODO - breakpoints for responsive design
height="calc(100vh - 104px)"
minWidth={theme.spacing(55)}
width="100vw"
maxWidth="calc(100vw - 800px)"
mt={theme.spacing(8)}
pt={theme.spacing(5)}
px={theme.spacing(10)}
>
<TabContext value={tab}>
<Box width="100%" sx={{ borderBottom: 1, borderColor: "divider" }}>
<Box
sx={{
borderBottom: 1,
borderColor: "divider",
"& .MuiTabs-root": { height: "fit-content", minHeight: "0" },
}}
>
<TabList onChange={handleTabChange} aria-label="settings tabs">
{tabList.map((label, index) => (
<Tab
@@ -55,12 +54,17 @@ const Settings = () => {
color: theme.palette.secondary.main,
textTransform: "none",
minWidth: "fit-content",
minHeight: 0,
paddingLeft: "0",
paddingY: "8px",
paddingY: "10px",
marginRight: "20px",
"&:focus": {
outline: "none",
},
"& .MuiTouchRipple-root": {
pointerEvents: "none",
display: "none",
},
}}
/>
))}