From 27212f14336bd7e880433c81e0a4e09787b27de7 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sat, 23 Jul 2022 19:54:13 -0700 Subject: [PATCH] finish up new navbar --- CALCKEY.md | 4 +- packages/client/src/ui/_common_/navbar.vue | 45 ++++++++-------------- 2 files changed, 19 insertions(+), 30 deletions(-) diff --git a/CALCKEY.md b/CALCKEY.md index d1c30d30c..15d327edd 100644 --- a/CALCKEY.md +++ b/CALCKEY.md @@ -2,7 +2,6 @@ ### Planned -- Better sidebar/navbar - MFM button - Better Messaging UI - Classic mode make instance icon bring up new context menu @@ -24,7 +23,8 @@ - Yarn 3 - Saner defaults - Star as default reaction -- Rosé Pine by default +- Rosé Pine by default (+ non-themable elements made Rosé Pine) +- Better sidebar/navbar - Mark as read from notifications widget - Better welcome screen (not logged in) - Ability to turn off "Connection lost" message diff --git a/packages/client/src/ui/_common_/navbar.vue b/packages/client/src/ui/_common_/navbar.vue index ac57924ac..bb4fbfaef 100644 --- a/packages/client/src/ui/_common_/navbar.vue +++ b/packages/client/src/ui/_common_/navbar.vue @@ -3,12 +3,9 @@
- -
@@ -47,9 +44,12 @@ - +
@@ -190,7 +190,7 @@ function more(ev: MouseEvent) { position: sticky; top: 0; z-index: 1; - padding: 2.5rem 0; + padding: 2rem 0; background: var(--X14); -webkit-backdrop-filter: var(--blur, blur(8px)); backdrop-filter: var(--blur, blur(8px)); @@ -207,7 +207,7 @@ function more(ev: MouseEvent) { mask-image: linear-gradient(0deg, rgba(0,0,0,0) 15%, rgba(0,0,0,0.75) 100%); } - > .instance { + > .account { position: relative; display: block; text-align: center; @@ -273,22 +273,14 @@ function more(ev: MouseEvent) { > .account { position: relative; - display: flex; - align-items: center; - padding-left: 30px; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; + display: block; + text-align: center; width: 100%; - text-align: left; - box-sizing: border-box; - margin-top: 16px; - > .avatar { - position: relative; - width: 32px; + > .icon { + display: inline-block; + width: 38px; aspect-ratio: 1; - margin-right: 8px; } } } @@ -377,12 +369,12 @@ function more(ev: MouseEvent) { position: sticky; top: 0; z-index: 1; - padding: 2.5rem 0; + padding: 2rem 0; background: var(--X14); -webkit-backdrop-filter: var(--blur, blur(8px)); backdrop-filter: var(--blur, blur(8px)); - > .instance { + > .account { display: block; text-align: center; width: 100%; @@ -443,19 +435,16 @@ function more(ev: MouseEvent) { } > .account { + position: relative; display: block; text-align: center; width: 100%; - > .avatar { + > .icon { display: inline-block; width: 38px; aspect-ratio: 1; } - - > .text { - display: none; - } } }