From 6ea3e7bbb8a3df3425a525ca805d865632dbb62f Mon Sep 17 00:00:00 2001 From: "David R. Myers" Date: Sat, 27 Jul 2024 14:08:03 -0400 Subject: [PATCH 01/20] Use theme for scrollbar handle color --- app.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app.vue b/app.vue index db272f9f..e938570d 100644 --- a/app.vue +++ b/app.vue @@ -123,4 +123,11 @@ svg { flex-direction: column; flex-grow: 1; } + +.os-scrollbar { + /* https://kingsora.github.io/OverlayScrollbars/#:~:text=to%20read%20it.-,Styling,-OverlayScrollbars%20comes%20with */ + --os-handle-bg: rgb(var(--layer-bg-hover)); + --os-handle-bg-hover: rgb(var(--layer-bg-hover)); + --os-handle-bg-active: rgb(var(--layer-bg-hover)); +} From db331500a8ca5e85065a2b325d16765a6f422d59 Mon Sep 17 00:00:00 2001 From: "David R. Myers" Date: Sat, 27 Jul 2024 14:16:47 -0400 Subject: [PATCH 02/20] Add a minimal dev script --- nuxt.config.ts | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 154d769a..7146e17e 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -252,7 +252,7 @@ export default defineNuxtConfig({ registerPlugin: true, }, devOptions: { - enabled: true, + enabled: !process.env.DISABLE_PWA, type: 'module', }, includeManifestIcons: true, @@ -306,7 +306,7 @@ export default defineNuxtConfig({ }, }, sourcemap: true, - ssr: true, + ssr: !process.env.DISABLE_SSR, tailwindcss: { configPath: '~/tailwind.config.cjs', }, diff --git a/package.json b/package.json index 9e105e62..f60f940c 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "clean": "rimraf .output dev-dist dist", "dev": "nuxt dev --port 8888", "dev:full": "run-p dev firebase:start", + "dev:minimal": "DISABLE_SSR=1 DISABLE_PWA=1 NUXT_PUBLIC_FIREBASE_DISABLED=1 run-s dev", "firebase:login": "firebase login", "firebase:start": "firebase -c ./firebase/firebase.json --project \"${FIREBASE_PROJECT_ID:-demo-octo}\" emulators:start --import ./firebase/data --export-on-exit ./firebase/data", "lint": "eslint .", From 70dcd315c7e298a4a0b6d1c59ee685c23365b499 Mon Sep 17 00:00:00 2001 From: "David R. Myers" Date: Sat, 27 Jul 2024 14:20:28 -0400 Subject: [PATCH 03/20] Compact form controls --- assets/css/tailwind.css | 4 ++-- components/CoreInput.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index ee2894d4..f77bff7f 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -322,7 +322,7 @@ } .core-button-shape { - @apply p-2 rounded inline-flex gap-3 items-center justify-center; + @apply px-2 py-1 rounded inline-flex gap-2 items-center justify-center; } /* utils */ @@ -373,6 +373,6 @@ } .sidebar-link { - @apply flex items-center justify-between rounded p-2 hover:bg-layer-hover focus:outline-none focus:ring; + @apply flex items-center justify-between rounded px-2 py-1 hover:bg-layer-hover focus:outline-none focus:ring; } } diff --git a/components/CoreInput.vue b/components/CoreInput.vue index efcb2c84..221f6825 100644 --- a/components/CoreInput.vue +++ b/components/CoreInput.vue @@ -108,7 +108,7 @@ onMounted(() => {