From f8e265e276254310370924b29fd33e77ee6f8cff Mon Sep 17 00:00:00 2001 From: "Anthony Fu (via agent)" Date: Thu, 27 Aug 2026 07:03:20 +0000 Subject: [PATCH 1/2] feat(docs): move color mode toggle to navbar top right Shadows comark-docs' AppHeader to add a UColorModeButton next to the version history button in the persistent header, so it's reachable at all breakpoints instead of only inside the mobile drawer's body slot. --- docs/app/components/AppHeader.vue | 100 ++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 docs/app/components/AppHeader.vue diff --git a/docs/app/components/AppHeader.vue b/docs/app/components/AppHeader.vue new file mode 100644 index 00000000..2c68f73f --- /dev/null +++ b/docs/app/components/AppHeader.vue @@ -0,0 +1,100 @@ + + + From 82d2ea314281b2abc82ad02c4561657bc5bfa138 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 27 Aug 2026 16:09:50 +0900 Subject: [PATCH 2/2] chore: update --- docs/app/assets/css/devframe.css | 4 ++-- docs/app/components/AppHeader.vue | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/app/assets/css/devframe.css b/docs/app/assets/css/devframe.css index fb2f5ce2..55f9ff05 100644 --- a/docs/app/assets/css/devframe.css +++ b/docs/app/assets/css/devframe.css @@ -46,7 +46,7 @@ width: 100%; } -/* Do not render "description" slot */ -[data-slot="description"] { +/* Do not render "description" slot in page, as the content are duplicated */ +[data-slot="wrapper"] + [data-slot="description"] { display: none; } diff --git a/docs/app/components/AppHeader.vue b/docs/app/components/AppHeader.vue index 2c68f73f..c282074a 100644 --- a/docs/app/components/AppHeader.vue +++ b/docs/app/components/AppHeader.vue @@ -3,7 +3,7 @@ // persistent top-right nav, next to the version history button. const { header, footer, assistant } = useAppConfig() const content = useDocsContent() -const historyOpen = useVersionHistory() +// const historyOpen = useVersionHistory() const assistantOpen = useAssistant() const navigation = useMainNavigation() @@ -39,7 +39,7 @@ const navigation = useMainNavigation() class="p-2" /> - + /> -->