From bc44b3db9ab7c515ed54334488c4ec46c6860697 Mon Sep 17 00:00:00 2001 From: Max G Date: Fri, 25 Feb 2022 02:33:49 +0000 Subject: [PATCH] Lots of little ease of use tweaks --- client/src/App.vue | 5 + client/src/assets/semantic-helper.css | 13 + client/src/components/ColorPicker.vue | 10 +- client/src/components/GlobalSiteMenu.vue | 67 ++++- .../src/components/LoadingIconComponent.vue | 4 +- client/src/components/LoginFormComponent.vue | 11 +- client/src/components/NoteInputPanel.vue | 231 ++++++++++++------ .../src/components/NoteTitleDisplayCard.vue | 67 ++++- .../components/TextColorTooltipComponent.vue | 50 +++- client/src/mixins/SquireButtonFunctions.js | 18 +- client/src/pages/NotesPage.vue | 164 ++++++++++--- client/src/router/index.js | 6 + client/src/stores/mainStore.js | 9 + server/index.js | 21 +- server/models/User.js | 31 ++- 15 files changed, 546 insertions(+), 161 deletions(-) diff --git a/client/src/App.vue b/client/src/App.vue index 6dd2dd3..091df57 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -200,6 +200,11 @@ export default { this.blockUntilNextRequest = true }) + //Track users active sessions + this.$io.on('update_active_user_count', countData => { + this.$store.commit('setActiveSessions', countData) + }) + }, computed: { loggedIn () { diff --git a/client/src/assets/semantic-helper.css b/client/src/assets/semantic-helper.css index 37b5c88..c8abbee 100644 --- a/client/src/assets/semantic-helper.css +++ b/client/src/assets/semantic-helper.css @@ -330,9 +330,14 @@ i.green.icon.icon.icon.icon { background-color: rgba(255, 255, 255, 0.2); } + .note-card-text code, + .squire-box code, .note-card-text pre, .squire-box pre { /*word-wrap: break-word;*/ + display: inline-block; + border-left: 2px solid var(--main-accent); + padding-left: 15px; } .note-card-text p, .squire-box p { @@ -880,6 +885,14 @@ i.green.icon.icon.icon.icon { -webkit-transform-origin: left center; transform-origin: left center; } +@media only screen and (max-width: 740px) { + /*hide tooltips on mobile*/ + [data-tooltip]:hover:before, + [data-tooltip]:hover:after { + visibility: visible; + opacity: 0; + } +} .glint:after { diff --git a/client/src/components/ColorPicker.vue b/client/src/components/ColorPicker.vue index 612af09..3281d0f 100644 --- a/client/src/components/ColorPicker.vue +++ b/client/src/components/ColorPicker.vue @@ -154,16 +154,20 @@ @@ -170,7 +178,6 @@ - -
- +
+ Menu
@@ -220,12 +227,12 @@