diff --git a/client/src/assets/semantic-helper.css b/client/src/assets/semantic-helper.css index 17e416c..cf4cf55 100644 --- a/client/src/assets/semantic-helper.css +++ b/client/src/assets/semantic-helper.css @@ -68,6 +68,15 @@ body { background-color: var(--background_color); border-color: var(--border_color); } +.button-sub { + display: inline-block; + width: 100%; + font-size: 0.9em; + color: white; + opacity: 0.8; + padding: 4px 0 0 0; + text-align: center; +} .ui.form input:not([type]), .ui.form input:not([type]):focus, @@ -342,6 +351,10 @@ a:hover { /* adjust checkboxes for mobile. Make them a little bigger, easier to click */ @media only screen and (max-width: 740px) { + .squire-box { + min-height: calc(100vh - 120px); + } + .ui.button.shrinking { font-size: 0.85714286rem; margin: 0 3px; diff --git a/client/src/components/GlobalSiteMenu.vue b/client/src/components/GlobalSiteMenu.vue index 5795cd3..1e24aea 100644 --- a/client/src/components/GlobalSiteMenu.vue +++ b/client/src/components/GlobalSiteMenu.vue @@ -257,7 +257,7 @@ }, data: function(){ return { - version: '2.2.2', + version: '2.2.3', username: '', collapsed: false, mobile: false, diff --git a/client/src/components/NoteInputPanel.vue b/client/src/components/NoteInputPanel.vue index 0ad7245..3ea04f2 100644 --- a/client/src/components/NoteInputPanel.vue +++ b/client/src/components/NoteInputPanel.vue @@ -113,7 +113,7 @@
-
+
@@ -170,7 +170,6 @@
@@ -407,27 +406,27 @@ this.activeToDo = false this.activeColor = null - let colors = e.path.match(/\d+/g) - if(colors && colors.length == 3){ + if(e.path.indexOf('>B') > -1){ + this.activeBold = true + } + if(e.path.indexOf('>I') > -1){ + this.activeQuote = true + } + if(e.path.indexOf('fontSize') > -1){ + this.activeTitle = true + } + if(e.path.indexOf('OL>LI') > -1){ + this.activeList = true + } + if(e.path.indexOf('UL>LI') > -1){ + this.activeToDo = true + } + const colorIndex = e.path.indexOf('color=') + if(colorIndex > -1){ + //Get all digigs after color index, then limit to 3 + let colors = e.path.substring(colorIndex).match(/\d+/g).slice(0,3) this.activeColor=`rgb(${colors.join(',')})` } - - //@ TODO - Update this to match all elements, like color and bold - // index of and then the specific thing might more indexOf('B'), indexOf('I'), etc - - let element = e.path.split('>').pop() - switch (element) { - case 'B': this.activeBold = true; break; - case 'I': this.activeQuote = true; break; - case 'SPAN.size[fontSize=1.4em]': this.activeTitle = true; break; - } - - let parent = e.path.split('>').shift() - switch (parent) { - case 'OL': this.activeList = true; break; - case 'UL': this.activeToDo = true; break; - } - }) //Click Event - Open links when clicked in editor or toggle checks diff --git a/client/src/components/SearchInput.vue b/client/src/components/SearchInput.vue index 5a774a2..e4b6142 100644 --- a/client/src/components/SearchInput.vue +++ b/client/src/components/SearchInput.vue @@ -9,7 +9,7 @@ .floating-button { position: absolute; right: 7px; - top: 4px; + top: 5px; z-index: 2; } .floating-note-options { @@ -26,40 +26,48 @@ }