Skip to content

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

fix: make slight ui fixes to dialogs

thecodrr8cb1bb6be1f0
diff --git a/apps/web/src/components/dialogs/loading-dialog.js b/apps/web/src/components/dialogs/loading-dialog.js
index e84a2c794..006868b9e 100644
--- a/apps/web/src/components/dialogs/loading-dialog.js
+++ b/apps/web/src/components/dialogs/loading-dialog.js
@@ -25,7 +25,7 @@ function LoadingDialog(props) {
<Text as="span" variant="body">
{props.message}
</Text>
- <Icon.Loading rotate sx={{ mt: 2 }} color="primary" />
+ <Icon.Loading rotate sx={{ my: 2 }} color="primary" />
</Box>
</Dialog>
);
diff --git a/apps/web/src/components/dialogs/move-note-dialog.js b/apps/web/src/components/dialogs/move-note-dialog.js
index e6649132a..00a7e7599 100644
--- a/apps/web/src/components/dialogs/move-note-dialog.js
+++ b/apps/web/src/components/dialogs/move-note-dialog.js
@@ -80,6 +80,7 @@ class MoveDialog extends React.Component {
description={"Organize your notes by adding them to notebooks."}
icon={Icon.Move}
onClose={props.onClose}
+ width={"30%"}
negativeButton={{
text: "Done",
onClick: props.onClose,
@@ -89,11 +90,11 @@ class MoveDialog extends React.Component {
<Field
inputRef={(ref) => (this.inputRef = ref)}
data-test-id="mnd-new-notebook-title"
- label="Notebooks"
+ label="Add a new notebook"
id="notebook-title"
name="notebook-title"
- helpText="Add a new notebook"
- placeholder="Enter new notebook title (press enter to confirm)"
+ helpText="Press enter to confirm"
+ placeholder="Enter new notebook title"
action={{
onClick: async () => {
await this.addNotebook(this.inputRef);
diff --git a/apps/web/src/components/dialogs/tracking-details-dialog.js b/apps/web/src/components/dialogs/tracking-details-dialog.js
index 5926dc178..7eb744b6f 100644
--- a/apps/web/src/components/dialogs/tracking-details-dialog.js
+++ b/apps/web/src/components/dialogs/tracking-details-dialog.js
@@ -9,6 +9,7 @@ function TrackingDetailsDialog(props) {
<Dialog
isOpen={true}
title={"Telemetry details"}
+ width={"30%"}
description={
"List of all the events we send to our servers for diagnostics and analytics. The data is transmitted over SSL (fully encrypted) and does not pass through any 3rd party server. Furthermore, the data does not contain any personal info - not even your user id."
}
diff --git a/apps/web/src/views/settings.js b/apps/web/src/views/settings.js
index 9cddf0a26..a9860a4ea 100644
--- a/apps/web/src/views/settings.js
+++ b/apps/web/src/views/settings.js
@@ -259,16 +259,10 @@ function Settings(props) {
onClick={async () => {
if (await showLogoutConfirmation()) {
await showLoadingDialog({
- title: "Logging you out",
- subtitle: "We are logging you out. Please wait...",
- action: async () => {
- await db.user.logout(true);
- },
- message: (
- <Text color="error">
- Please do NOT close your browser or shut down your PC.
- </Text>
- ),
+ title: "You are being logged out",
+ subtitle:
+ "Please do NOT close your browser or shut down your PC.",
+ action: () => db.user.logout(true),
});
showToast("success", "You have been logged out.");
}
@@ -415,15 +409,9 @@ function Settings(props) {
const backupData = JSON.stringify(await importBackup());
const error = await showLoadingDialog({
title: "Restoring backup",
- subtitle: "We are restoring your backup. Please wait...",
- action: async () => {
- await db.backup.import(backupData);
- },
- message: (
- <Text color="error">
- Please do NOT close your browser or shut down your PC.
- </Text>
- ),
+ subtitle:
+ "Please do NOT close your browser or shut down your PC.",
+ action: () => db.backup.import(backupData),
});
if (!error) {
await showToast("success", "Backup restored!");