From 8661e8305d3350a6e88ce1744f46cd792556082c Mon Sep 17 00:00:00 2001 From: Caio Cabral Date: Wed, 15 Jan 2025 18:35:00 -0500 Subject: [PATCH] removing fixed height from css --- Client/src/Components/Breadcrumbs/index.css | 4 ++-- Client/src/Components/Fallback/index.css | 2 +- Client/src/Components/Inputs/Select/index.css | 2 +- Client/src/Pages/Account/index.css | 2 +- Client/src/Pages/Account/index.jsx | 9 ++++++--- Client/src/Pages/Incidents/index.css | 2 +- Client/src/Pages/Maintenance/CreateMaintenance/index.jsx | 4 ++-- Client/src/Pages/PageSpeed/Details/index.css | 2 +- Client/src/Pages/PageSpeed/index.css | 2 +- Client/src/Pages/Settings/index.css | 2 +- 10 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Client/src/Components/Breadcrumbs/index.css b/Client/src/Components/Breadcrumbs/index.css index b089f8366..abb3c0a28 100644 --- a/Client/src/Components/Breadcrumbs/index.css +++ b/Client/src/Components/Breadcrumbs/index.css @@ -1,9 +1,9 @@ .MuiBreadcrumbs-root { - height: 34px; + min-height: 34px; } .MuiBreadcrumbs-root svg { width: 16px; - height: 16px; + min-height: 16px; } .MuiBreadcrumbs-root .MuiBreadcrumbs-li a { font-size: var(--env-var-font-size-medium); diff --git a/Client/src/Components/Fallback/index.css b/Client/src/Components/Fallback/index.css index f00fc1b09..9b4d6f653 100644 --- a/Client/src/Components/Fallback/index.css +++ b/Client/src/Components/Fallback/index.css @@ -12,7 +12,7 @@ width: max-content; } [class*="fallback__"] button.MuiButtonBase-root { - height: 34px; + min-height: 34px; } [class*="fallback__"] .check span.MuiTypography-root, [class*="fallback__"] button.MuiButtonBase-root { diff --git a/Client/src/Components/Inputs/Select/index.css b/Client/src/Components/Inputs/Select/index.css index 676dcc378..b40cf8564 100644 --- a/Client/src/Components/Inputs/Select/index.css +++ b/Client/src/Components/Inputs/Select/index.css @@ -1,6 +1,6 @@ .select-wrapper .select-component > .MuiSelect-select { padding: 0 10px; - height: 34px; + min-height: 34px; display: flex; align-items: center; line-height: 1; diff --git a/Client/src/Pages/Account/index.css b/Client/src/Pages/Account/index.css index a4e8d88f0..41e25fffa 100644 --- a/Client/src/Pages/Account/index.css +++ b/Client/src/Pages/Account/index.css @@ -14,7 +14,7 @@ margin-top: 50px; } .account button:not(.MuiIconButton-root) { - height: 34px; + min-height: 34px; } .account .field { flex: 1; diff --git a/Client/src/Pages/Account/index.jsx b/Client/src/Pages/Account/index.jsx index 9b9a23d55..825d8f263 100644 --- a/Client/src/Pages/Account/index.jsx +++ b/Client/src/Pages/Account/index.jsx @@ -84,17 +84,20 @@ const Account = ({ open = "profile" }) => { tabIndex={index} sx={{ fontSize: 13, - color: theme.palette.primary.contrastTextTertiary, + color: theme.palette.tertiary.contrastText, + backgroundColor: theme.palette.tertiary.main, /* TODO implement bg color and styling for tabs - backgroundColor: theme.palette.tertiary.main, */ + */ textTransform: "none", minWidth: "fit-content", minHeight: 0, - paddingY: theme.spacing(4), + paddingY: theme.spacing(6), fontWeight: 400, /* marginRight: theme.spacing(8), */ borderBottom: "2px solid transparent", + "&:first-child": { borderTopLeftRadius: "8px" }, + "&:last-child": { borderTopRightRadius: "8px" }, "&:focus, &.Mui-selected": { /* TODO this appears and disapears. Investigate */ color: theme.palette.primary.contrastText, diff --git a/Client/src/Pages/Incidents/index.css b/Client/src/Pages/Incidents/index.css index 7e268c5eb..ddbb44e6d 100644 --- a/Client/src/Pages/Incidents/index.css +++ b/Client/src/Pages/Incidents/index.css @@ -7,5 +7,5 @@ font-size: var(--env-var-font-size-medium); } .incidents button.MuiButtonBase-root { - height: 34px; + min-height: 34px; } diff --git a/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx b/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx index b54c77337..ecd8d8b01 100644 --- a/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx +++ b/Client/src/Pages/Maintenance/CreateMaintenance/index.jsx @@ -374,7 +374,7 @@ const CreateMaintenance = () => { flexDirection: "row-reverse", }, "& input": { - height: 34, + minHeight: 34, p: 0, pr: theme.spacing(5), }, @@ -439,7 +439,7 @@ const CreateMaintenance = () => { flexDirection: "row-reverse", }, "& input": { - height: 34, + minHeight: 34, p: 0, pl: theme.spacing(5), }, diff --git a/Client/src/Pages/PageSpeed/Details/index.css b/Client/src/Pages/PageSpeed/Details/index.css index 884bb6934..0d0699b3d 100644 --- a/Client/src/Pages/PageSpeed/Details/index.css +++ b/Client/src/Pages/PageSpeed/Details/index.css @@ -1,5 +1,5 @@ .page-speed-details button.MuiButtonBase-root { - height: 34px; + min-height: 34px; } .page-speed-details .MuiPieArcLabel-root { diff --git a/Client/src/Pages/PageSpeed/index.css b/Client/src/Pages/PageSpeed/index.css index a171d1c94..3741a6f0f 100644 --- a/Client/src/Pages/PageSpeed/index.css +++ b/Client/src/Pages/PageSpeed/index.css @@ -4,5 +4,5 @@ font-size: var(--env-var-font-size-small); } .page-speed:not(:has([class*="fallback__"])) button { - height: 34px; + min-height: 34px; } diff --git a/Client/src/Pages/Settings/index.css b/Client/src/Pages/Settings/index.css index 878d0f924..52bccab5e 100644 --- a/Client/src/Pages/Settings/index.css +++ b/Client/src/Pages/Settings/index.css @@ -13,7 +13,7 @@ font-weight: 600; } .settings button { - height: 34px; + min-height: 34px; } .settings span.MuiTypography-root { opacity: 0.6;