From c27f5cf61e50ccf6abf1a5e38049f280b0a97bb8 Mon Sep 17 00:00:00 2001 From: quenousimporte <76260127+quenousimporte@users.noreply.github.com> Date: Fri, 27 Jan 2023 09:05:22 +0100 Subject: [PATCH] removed: unsaved mark fixed: allow some commands even if current note not saved --- index.html | 6 ++---- main.js | 27 ++++++++++++++++++--------- style.css | 8 -------- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/index.html b/index.html index 90f431c..8df8a00 100644 --- a/index.html +++ b/index.html @@ -30,11 +30,9 @@
+
- - - -   +
diff --git a/main.js b/main.js index 2e3404d..0aefff8 100644 --- a/main.js +++ b/main.js @@ -126,7 +126,8 @@ var commands = [ }, { hint: "Share note", - action: share + action: share, + allowunsaved: true }/*, { hint: "Share note (html)", @@ -162,12 +163,14 @@ var commands = [ { shortcut: "ctrl+i", hint: "Toggle title", - action: toggletitle + action: toggletitle, + allowunsaved: true }, { shortcut: "ctrl+m", hint: "Toggle preview", - action: togglepreview + action: togglepreview, + allowunsaved: true }, { shortcut: "ctrl+d", @@ -192,16 +195,19 @@ var commands = [ { shortcut: "ctrl+shift+C", hint: "Fold", - action: fold + action: fold, + allowunsaved: true }, { shortcut: "ctrl+shift+O", hint: "Unfold", - action: unfold + action: unfold, + allowunsaved: true }, { hint: "Unfold all", - action: unfoldall + action: unfoldall, + allowunsaved: true }, { hint: "Download note", @@ -232,7 +238,8 @@ var commands = [ }, { hint: "Sort text", - action: sortselection + action: sortselection, + allowunsaved: true }, { hint: "Settings", @@ -245,7 +252,8 @@ var commands = [ { hint: "Note outline", action: showoutline, - shortcut: "ctrl+o" + shortcut: "ctrl+o", + allowunsaved: true }, { hint: "Internal links", @@ -263,7 +271,8 @@ var commands = [ }, { hint: "Select theme", - action: selecttheme + action: selecttheme, + allowunsaved: true }, { hint: "Show info", diff --git a/style.css b/style.css index fe047d2..7b81733 100644 --- a/style.css +++ b/style.css @@ -60,14 +60,6 @@ body::-webkit-scrollbar-thumb { width: 100%; } -#topbar > span { - display: table-cell; -} - -#titlecontainer { - width: 100%; -} - #title { width: 100%; padding-top: 10px;