From 9e1770e1fb638b0dfbbb7ea7881773252b7732c5 Mon Sep 17 00:00:00 2001 From: Boubrid Ihab Date: Fri, 8 Jul 2022 20:10:20 +0100 Subject: refactor: change parseInt with calc on fab Button --- modern/src/settings/components/CollectionFab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern') diff --git a/modern/src/settings/components/CollectionFab.js b/modern/src/settings/components/CollectionFab.js index 6aac68b5..b1230733 100644 --- a/modern/src/settings/components/CollectionFab.js +++ b/modern/src/settings/components/CollectionFab.js @@ -11,7 +11,7 @@ const useStyles = makeStyles((theme) => ({ bottom: theme.spacing(2), right: theme.spacing(2), [theme.breakpoints.down('md')]: { - bottom: parseInt(theme.dimensions.bottomBarHeight, 10) + parseInt(theme.spacing(2), 10), + bottom: `calc(${theme.dimensions.bottomBarHeight}px + ${theme.spacing(2)})`, }, }, })); -- cgit v1.2.3