From 7a3dc96f8980bad2c8fbca9415f222baefde8e42 Mon Sep 17 00:00:00 2001 From: Violet Agent Date: Fri, 12 Jun 2026 17:37:16 +0300 Subject: [PATCH 1/3] Show mobile logo home link --- src/pages/_root.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/pages/_root.css diff --git a/src/pages/_root.css b/src/pages/_root.css new file mode 100644 index 0000000..18d0a26 --- /dev/null +++ b/src/pages/_root.css @@ -0,0 +1,20 @@ +@media (max-width: 1023.98px) { + [data-v-logo-link] { + display: inline-flex !important; + align-items: center; + justify-content: center; + min-width: 2rem; + height: 100%; + } + + [data-v-logo-link] [data-v-logo] { + height: 100%; + } + + [data-v-logo-link] [data-v-logo-image] { + width: 1.75rem; + height: 1.75rem; + max-height: 1.75rem; + object-fit: contain; + } +} From 32dffab6dec87d50e088e1ba60fb42da749bea3c Mon Sep 17 00:00:00 2001 From: Violet Agent Date: Fri, 12 Jun 2026 18:13:24 +0300 Subject: [PATCH 2/3] Simplify mobile logo sizing --- public/bloom-mark.svg | 2 +- public/favicon.svg | 2 +- src/pages/_root.css | 20 +++++++------------- 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/public/bloom-mark.svg b/public/bloom-mark.svg index ce01cc1..e39ed42 100644 --- a/public/bloom-mark.svg +++ b/public/bloom-mark.svg @@ -1,4 +1,4 @@ - + diff --git a/public/favicon.svg b/public/favicon.svg index ce01cc1..e39ed42 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1,4 +1,4 @@ - + diff --git a/src/pages/_root.css b/src/pages/_root.css index 18d0a26..6c6eedd 100644 --- a/src/pages/_root.css +++ b/src/pages/_root.css @@ -1,17 +1,11 @@ +/* + * Vocs already shows the header logo link below the large-screen sidebar + * breakpoint and hides it on desktop when the sidebar is present. Match that + * default/Centaur pattern; only give Bloom's square SVG mark an explicit + * mobile header size so it paints reliably in the top bar. + */ @media (max-width: 1023.98px) { - [data-v-logo-link] { - display: inline-flex !important; - align-items: center; - justify-content: center; - min-width: 2rem; - height: 100%; - } - - [data-v-logo-link] [data-v-logo] { - height: 100%; - } - - [data-v-logo-link] [data-v-logo-image] { + [data-v-logo-image] { width: 1.75rem; height: 1.75rem; max-height: 1.75rem; From 7e210b2a5a9e6dfd796bf770c0bd11615a502f46 Mon Sep 17 00:00:00 2001 From: Violet Agent Date: Fri, 12 Jun 2026 21:11:50 +0300 Subject: [PATCH 3/3] Fix Ask AI markdown routes --- package.json | 2 +- scripts/copy-markdown-routes.mjs | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 scripts/copy-markdown-routes.mjs diff --git a/package.json b/package.json index 0326931..ab104e0 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "vocs dev", "lint": "tsc --noEmit", - "build": "vocs build", + "build": "vocs build && node scripts/copy-markdown-routes.mjs", "preview": "vocs preview" }, "dependencies": { diff --git a/scripts/copy-markdown-routes.mjs b/scripts/copy-markdown-routes.mjs new file mode 100644 index 0000000..251c13a --- /dev/null +++ b/scripts/copy-markdown-routes.mjs @@ -0,0 +1,19 @@ +import { copyFile, mkdir, readdir } from 'node:fs/promises' +import { dirname, join, relative } from 'node:path' + +const publicDir = join(process.cwd(), 'dist/public') +const mdDir = join(publicDir, 'assets/md') + +async function* walk(dir) { + for (const entry of await readdir(dir, { withFileTypes: true })) { + const path = join(dir, entry.name) + if (entry.isDirectory()) yield* walk(path) + else if (entry.isFile() && entry.name.endsWith('.md')) yield path + } +} + +for await (const source of walk(mdDir)) { + const destination = join(publicDir, relative(mdDir, source)) + await mkdir(dirname(destination), { recursive: true }) + await copyFile(source, destination) +}