From 72b7f8946a6df5083e645c6a837c0a0f71d8d0ba Mon Sep 17 00:00:00 2001 From: Max G Date: Wed, 26 Feb 2020 05:35:43 +0000 Subject: [PATCH] Minor Style Tweaks * Changed the way the note menus display * Added a blank note indicator text * Added date created and date updated text to bottom of note fixes #18 fixes #5 --- client/src/assets/semantic-helper.css | 10 +- client/src/components/NoteInputPanel.vue | 94 ++++++++++++++++--- .../src/components/NoteTitleDisplayCard.vue | 5 + client/src/pages/NotesPage.vue | 6 ++ server/models/Note.js | 1 + 5 files changed, 100 insertions(+), 16 deletions(-) diff --git a/client/src/assets/semantic-helper.css b/client/src/assets/semantic-helper.css index 2c0ed0e..6570dc4 100644 --- a/client/src/assets/semantic-helper.css +++ b/client/src/assets/semantic-helper.css @@ -199,12 +199,16 @@ a:hover { /* squire text styles */ .squire-box { border: none; - height: calc(100% - 69px); + /*height: calc(100% - 69px);*/ + + min-height: calc(100% - 0px); + background-color: rgba(255,200,0,0.0); + /*margin-bottom: 15px;*/ + box-sizing: border-box; padding: 10px 15px 10px; - background: transparent; + /*background: transparent;*/ overflow-x: scroll; - /*color: var(--text_color);*/ font-size: 1.2em; line-height: 1.5em; word-wrap: break-word; diff --git a/client/src/components/NoteInputPanel.vue b/client/src/components/NoteInputPanel.vue index de38085..cc0b79b 100644 --- a/client/src/components/NoteInputPanel.vue +++ b/client/src/components/NoteInputPanel.vue @@ -4,10 +4,12 @@ id="InputNotes" class="master-note-edit" @keyup.esc="close" - :class="[{'size-down':(sizeDown == true), 'padded-bottom':extraToolbarsVisible }, 'position-'+position ]" + :class="[{ 'size-down':(sizeDown == true) }, 'position-'+position ]" :style="{ 'background-color':styleObject['noteBackground'], 'color':styleObject['noteText']}" > +
+
@@ -34,10 +36,27 @@ -
-
+ +
+ +
+ + +
+
+
+
+ Status: {{ statusText }} +
+
+ Last Change: {{ $helpers.timeAgo(updated) }} +
+
+
+
+
@@ -108,7 +127,9 @@
- + + + { @@ -693,10 +721,12 @@ this.rawTextId = response.data.rawTextId this.shareUsername = response.data.shareUsername + this.created = response.data.created + this.updated = response.data.updated + vm.noteText = response.data.text vm.diffNoteText = response.data.text - vm.updated = response.data.updated vm.lastNoteHash = vm.hashString(response.data.text) //Set up note colors if(response.data.color){ @@ -1031,23 +1061,52 @@