From 5e2b1a3aa5896c89f2ddec9a43b331466d664429 Mon Sep 17 00:00:00 2001 From: Christopher Date: Mon, 8 Feb 2021 21:27:00 +0100 Subject: [PATCH] fix(notes/nui): fix Fab in notes list --- phone/src/apps/notes/NotesApp.tsx | 151 +++++++++++++++++++++++++++ phone/src/apps/notes/notes.styles.ts | 6 +- 2 files changed, 154 insertions(+), 3 deletions(-) diff --git a/phone/src/apps/notes/NotesApp.tsx b/phone/src/apps/notes/NotesApp.tsx index c730344..f615923 100644 --- a/phone/src/apps/notes/NotesApp.tsx +++ b/phone/src/apps/notes/NotesApp.tsx @@ -32,6 +32,157 @@ InjectDebugData([ title: 'Second note', content: 'Hello, this is another shitty note', }, + { + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + }, + { + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + }, + + { + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + }, + { + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + }, + { + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + }, + { + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + }, + { + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + }, + { + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + }, + { + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + }, + { + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + },{ + id: 2, + title: 'Second note', + content: 'Hello, this is another shitty note', + }, ], } ]); diff --git a/phone/src/apps/notes/notes.styles.ts b/phone/src/apps/notes/notes.styles.ts index c1b1cc5..9e07c84 100644 --- a/phone/src/apps/notes/notes.styles.ts +++ b/phone/src/apps/notes/notes.styles.ts @@ -21,9 +21,9 @@ const useStyles = makeStyles((theme) => ({ zIndex: 5, }, absolute: { - position: 'absolute', - bottom: theme.spacing(2), - right: theme.spacing(3), + position: 'sticky', + bottom: theme.spacing(3), + left: theme.spacing(40), }, }));