mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-02 22:17:39 +00:00
fix(notes/nui): better solution for Fab
This commit is contained in:
1 parent
d4cf6ce4f6
commit
1a5c85ed82
2 files changed
+5
-5
No files matched your search
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user