mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +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} />
|
<NoteModal key={detail?.id} />
|
||||||
<AppContent>
|
<AppContent>
|
||||||
<NoteList notes={notes} />
|
<NoteList notes={notes} />
|
||||||
<Fab
|
</AppContent>
|
||||||
|
<Fab
|
||||||
className={classes.absolute}
|
className={classes.absolute}
|
||||||
onClick={handleModal}
|
onClick={handleModal}
|
||||||
style={{
|
style={{
|
||||||
@@ -65,7 +66,6 @@ export const NotesApp = () => {
|
|||||||
>
|
>
|
||||||
<AddIcon />
|
<AddIcon />
|
||||||
</Fab>
|
</Fab>
|
||||||
</AppContent>
|
|
||||||
<NotesAlert />
|
<NotesAlert />
|
||||||
</AppWrapper>
|
</AppWrapper>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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),
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user