fix(notes/nui): better solution for Fab

This commit is contained in:
Christopher committed 2021-02-08 21:29:43 +01:00
1 parent d4cf6ce4f6
commit 1a5c85ed82
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -55,6 +55,7 @@ export const NotesApp = () => {
<NoteModal key={detail?.id} /> <NoteModal key={detail?.id} />
<AppContent> <AppContent>
<NoteList notes={notes} /> <NoteList notes={notes} />
</AppContent>
<Fab <Fab
className={classes.absolute} className={classes.absolute}
onClick={handleModal} onClick={handleModal}
@@ -65,7 +66,6 @@ export const NotesApp = () => {
> >
<AddIcon /> <AddIcon />
</Fab> </Fab>
</AppContent>
<NotesAlert /> <NotesAlert />
</AppWrapper> </AppWrapper>
); );
+3 -3
View File
@@ -21,9 +21,9 @@ const useStyles = makeStyles((theme) => ({
zIndex: 5, zIndex: 5,
}, },
absolute: { absolute: {
position: 'sticky', position: 'absolute',
bottom: theme.spacing(3), bottom: theme.spacing(2),
left: theme.spacing(40), right: theme.spacing(3),
}, },
})); }));