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