From d8664d3ed7a63bee2ec58572c9e8e7326881e323 Mon Sep 17 00:00:00 2001 From: Daniel Cojocea Date: Sat, 14 Sep 2024 12:36:20 -0400 Subject: [PATCH 1/2] Added basic default font variants --- .../Charts/MonitorDetailsAreaChart/index.jsx | 2 +- Client/src/Components/Inputs/Field/index.jsx | 3 +- Client/src/Pages/Monitors/Configure/index.css | 3 -- Client/src/Pages/Monitors/Configure/index.jsx | 16 ++----- .../Pages/Monitors/CreateMonitor/index.css | 4 -- .../Pages/Monitors/CreateMonitor/index.jsx | 26 +++++------ Client/src/Pages/Monitors/Details/index.jsx | 24 +++-------- .../Monitors/Home/MonitorTable/index.jsx | 7 +-- .../src/Pages/Monitors/Home/actionsMenu.jsx | 6 +-- Client/src/Pages/Monitors/Home/fallback.jsx | 6 ++- Client/src/Pages/Monitors/Home/index.css | 11 ----- Client/src/Pages/Monitors/Home/index.jsx | 6 +-- Client/src/Pages/Monitors/Home/skeleton.jsx | 10 +---- Client/src/Pages/NotFound/index.jsx | 10 ++--- .../src/Pages/PageSpeed/Configure/index.css | 14 +----- .../src/Pages/PageSpeed/Configure/index.jsx | 11 ++--- .../Pages/PageSpeed/CreatePageSpeed/index.css | 43 ------------------- .../Pages/PageSpeed/CreatePageSpeed/index.jsx | 11 ++--- .../PageSpeed/Details/Charts/AreaChart.jsx | 1 - Client/src/Pages/PageSpeed/Details/index.jsx | 34 ++++----------- Client/src/Pages/PageSpeed/card.jsx | 14 +++++- Client/src/Pages/PageSpeed/index.css | 11 ----- Client/src/Utils/Theme/darkTheme.js | 10 ++++- Client/src/Utils/Theme/lightTheme.js | 10 ++++- Client/src/Utils/greeting.jsx | 22 +++------- Client/src/index.css | 2 - 26 files changed, 90 insertions(+), 227 deletions(-) diff --git a/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx b/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx index 2ecb2f6a8..7074b7771 100644 --- a/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx +++ b/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx @@ -97,7 +97,7 @@ const CustomTick = ({ x, y, payload, index }) => { fontSize={11} fontWeight={400} > - {formatDateWithTz(payload?.value, "HH:mm:ss", uiTimezone)} + {formatDateWithTz(payload?.value, "h:mm a", uiTimezone)} ); }; diff --git a/Client/src/Components/Inputs/Field/index.jsx b/Client/src/Components/Inputs/Field/index.jsx index 62c50eeff..e7326ec41 100644 --- a/Client/src/Components/Inputs/Field/index.jsx +++ b/Client/src/Components/Inputs/Field/index.jsx @@ -121,8 +121,9 @@ const Field = forwardRef( sx: { color: theme.palette.text.secondary, "&:-webkit-autofill": { - WebkitBoxShadow: `0 0 0 100px ${theme.palette.background.fill} inset`, + WebkitBoxShadow: `0 0 0 100px ${theme.palette.other.autofill} inset`, WebkitTextFillColor: theme.palette.text.secondary, + borderRadius: "0 5px 5px 0", }, }, }} diff --git a/Client/src/Pages/Monitors/Configure/index.css b/Client/src/Pages/Monitors/Configure/index.css index 032833924..c59936d46 100644 --- a/Client/src/Pages/Monitors/Configure/index.css +++ b/Client/src/Pages/Monitors/Configure/index.css @@ -1,6 +1,3 @@ -.configure-monitor h1.MuiTypography-root + span.MuiTypography-root { - font-size: var(--env-var-font-size-small-plus); -} .configure-monitor button.MuiButtonBase-root { height: var(--env-var-height-2); } diff --git a/Client/src/Pages/Monitors/Configure/index.jsx b/Client/src/Pages/Monitors/Configure/index.jsx index 34076dd89..cd55837a7 100644 --- a/Client/src/Pages/Monitors/Configure/index.jsx +++ b/Client/src/Pages/Monitors/Configure/index.jsx @@ -223,12 +223,7 @@ const Configure = () => { > - + {monitor.name} { /> - + {monitor.url?.replace(/^https?:\/\//, "") || "..."} { ]; return ( - + { gap={theme.spacing(12)} mt={theme.spacing(6)} > - - + + Create your{" "} - + monitor @@ -262,7 +256,7 @@ const CreateMonitor = () => { onChange={(event) => handleChange(event)} /> {monitor.type === "http" ? ( - +