Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: make dialogs scrollable

thecodrre4399d005861
diff --git a/apps/web/src/components/dialogs/dialog.js b/apps/web/src/components/dialogs/dialog.js
index 8e94ecda8..922d0282b 100644
--- a/apps/web/src/components/dialogs/dialog.js
+++ b/apps/web/src/components/dialogs/dialog.js
@@ -57,6 +57,7 @@ function Dialog(props) {
bg="background"
alignSelf={"center"}
m={[0, 2, 2]}
+ overflowY={props.scrollable ? "scroll" : "hidden"}
sx={{
position: "relative",
overflow: "hidden",
diff --git a/apps/web/src/components/dialogs/logindialog.js b/apps/web/src/components/dialogs/logindialog.js
index e2fe36231..436c8763c 100644
--- a/apps/web/src/components/dialogs/logindialog.js
+++ b/apps/web/src/components/dialogs/logindialog.js
@@ -20,6 +20,7 @@ function LoginDialog(props) {
description={"Signing in allows you to sync your notes across devices."}
icon={Icon.Login}
onClose={onClose}
+ scrollable
negativeButton={{ text: "Cancel", onClick: onClose }}
positiveButton={{
props: {
diff --git a/apps/web/src/components/dialogs/move-note-dialog.js b/apps/web/src/components/dialogs/move-note-dialog.js
index 3153f3c47..40b89943e 100644
--- a/apps/web/src/components/dialogs/move-note-dialog.js
+++ b/apps/web/src/components/dialogs/move-note-dialog.js
@@ -14,13 +14,7 @@ class MoveDialog extends React.Component {
selectedTopic;
state = {
currentOpenedIndex: -1,
- notebooks: [
- ...db.notebooks.all,
- ...db.notebooks.all,
- ...db.notebooks.all,
- ...db.notebooks.all,
- ...db.notebooks.all,
- ],
+ notebooks: db.notebooks.all,
};
async addNotebook(input) {
diff --git a/apps/web/src/components/dialogs/signupdialog.js b/apps/web/src/components/dialogs/signupdialog.js
index 263318088..914a2a066 100644
--- a/apps/web/src/components/dialogs/signupdialog.js
+++ b/apps/web/src/components/dialogs/signupdialog.js
@@ -20,6 +20,7 @@ function SignUpDialog(props) {
description={"Sign up for a 14-day free trial (no credit card)."}
icon={Icon.Signup}
onClose={onClose}
+ scrollable
negativeButton={{ text: "Cancel", onClick: onClose }}
buttonsAlignment="center"
positiveButton={{