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
+5 -5

No files matched your search

+2 -2
View File
@@ -55,7 +55,8 @@ export const NotesApp = () => {
<NoteModal key={detail?.id} />
<AppContent>
<NoteList notes={notes} />
<Fab
</AppContent>
<Fab
className={classes.absolute}
onClick={handleModal}
style={{
@@ -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),
},
}));