From f2529d17e6594eaa62f982629c6cf1079a254a84 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 18 Oct 2022 17:19:20 -0700 Subject: Unify status card styles --- modern/src/main/MainPage.js | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'modern/src/main') diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js index a174096e..4e88733a 100644 --- a/modern/src/main/MainPage.js +++ b/modern/src/main/MainPage.js @@ -80,19 +80,6 @@ const useStyles = makeStyles((theme) => ({ deviceList: { flex: 1, }, - statusCard: { - position: 'fixed', - zIndex: 5, - [theme.breakpoints.up('md')]: { - left: `calc(50% + ${theme.dimensions.drawerWidthDesktop} / 2)`, - bottom: theme.spacing(3), - }, - [theme.breakpoints.down('md')]: { - left: '50%', - bottom: `calc(${theme.spacing(3)} + ${theme.dimensions.bottomBarHeight}px)`, - }, - transform: 'translateX(-50%)', - }, sidebarToggle: { position: 'fixed', left: theme.spacing(1.5), @@ -367,13 +354,12 @@ const MainPage = () => { )} {!features.disableEvents && setEventsOpen(false)} />} {selectedDeviceId && ( -
- dispatch(devicesActions.select(null))} - /> -
+ dispatch(devicesActions.select(null))} + desktopPadding={theme.dimensions.drawerWidthDesktop} + /> )} ); -- cgit v1.2.3