From 63114132e2a50f84e7bb031d2434f22bd6eb305a Mon Sep 17 00:00:00 2001 From: farodin91 Date: Sat, 23 Nov 2024 11:19:27 +0100 Subject: [PATCH] frontend: cleanup general settings * let general settings looks similar to cluster settings Signed-off-by: farodin91 --- .../src/components/App/Settings/Settings.tsx | 8 ------ .../App/Settings/ThemeChangeButton.tsx | 1 - .../Settings.General.stories.storyshot | 27 +++++++++---------- .../common/TimezoneSelect/TimezoneSelect.tsx | 2 +- .../src/i18n/LocaleSelect/LocaleSelect.tsx | 2 +- .../LocaleSelect.Initial.stories.storyshot | 2 +- 6 files changed, 16 insertions(+), 26 deletions(-) diff --git a/frontend/src/components/App/Settings/Settings.tsx b/frontend/src/components/App/Settings/Settings.tsx index cb576dc879..3e0fc2c54e 100644 --- a/frontend/src/components/App/Settings/Settings.tsx +++ b/frontend/src/components/App/Settings/Settings.tsx @@ -48,14 +48,6 @@ export default function Settings() { backLink > ({ - width: '60%', - [theme.breakpoints.down('sm')]: { - width: 'unset', - }, - }), - }} rows={[ { name: t('translation|Language'), diff --git a/frontend/src/components/App/Settings/ThemeChangeButton.tsx b/frontend/src/components/App/Settings/ThemeChangeButton.tsx index 557508c393..e2d9107491 100644 --- a/frontend/src/components/App/Settings/ThemeChangeButton.tsx +++ b/frontend/src/components/App/Settings/ThemeChangeButton.tsx @@ -56,7 +56,6 @@ export default function ThemeChangeButton(props: { showBothIcons?: boolean }) { '& button': { boxShadow: 'none', borderRadius: '4px', - padding: '0.8rem 1.5rem', }, '& .MuiButton-contained': { backgroundColor: theme.palette.mode === 'dark' ? '#fff' : 'rgba(0, 0, 0, 0.45)', diff --git a/frontend/src/components/App/Settings/__snapshots__/Settings.General.stories.storyshot b/frontend/src/components/App/Settings/__snapshots__/Settings.General.stories.storyshot index 0eb57d483a..49106214fa 100644 --- a/frontend/src/components/App/Settings/__snapshots__/Settings.General.stories.storyshot +++ b/frontend/src/components/App/Settings/__snapshots__/Settings.General.stories.storyshot @@ -76,10 +76,10 @@ Language
diff --git a/frontend/src/components/common/TimezoneSelect/TimezoneSelect.tsx b/frontend/src/components/common/TimezoneSelect/TimezoneSelect.tsx index 0c797febf1..2838fbd8b3 100644 --- a/frontend/src/components/common/TimezoneSelect/TimezoneSelect.tsx +++ b/frontend/src/components/common/TimezoneSelect/TimezoneSelect.tsx @@ -34,7 +34,7 @@ export default function TimezoneSelect(props: TimezoneSelectorProps) { autoComplete includeInputInList openOnFocus - renderInput={params => } + renderInput={params => } onChange={(_ev, value) => onChange(value.name)} value={timezoneOptions.find(option => option.name === initialTimezone)} /> diff --git a/frontend/src/i18n/LocaleSelect/LocaleSelect.tsx b/frontend/src/i18n/LocaleSelect/LocaleSelect.tsx index d8d0cf7526..0ef1e6aa79 100644 --- a/frontend/src/i18n/LocaleSelect/LocaleSelect.tsx +++ b/frontend/src/i18n/LocaleSelect/LocaleSelect.tsx @@ -56,7 +56,7 @@ export default function LocaleSelect(props: LocaleSelectProps) { const extraInputProps = import.meta.env.UNDER_TEST ? { 'aria-controls': 'under-test' } : {}; return ( - + {props.showTitle && {t('Select locale')}}