From fcb924deef01099afc61cefb704b2bd772db7a70 Mon Sep 17 00:00:00 2001 From: vihar Date: Sun, 16 Aug 2026 20:29:58 +0530 Subject: [PATCH 1/2] docs: place Copy page control below the title on small screens Teleport the control to right after the page H1 once mounted (and after each client-side page change), so it sits directly under the heading, left-aligned, on narrow screens while staying on the title row on wide screens. Falls back to the doc-before slot before hydration or when a page has no H1. Also keeps the menu links neutral now that they render inside .vp-doc. --- .../theme/components/CopyPageMenu.vue | 164 ++++++++++++------ docs/.vitepress/theme/style.css | 49 ++++-- 2 files changed, 143 insertions(+), 70 deletions(-) diff --git a/docs/.vitepress/theme/components/CopyPageMenu.vue b/docs/.vitepress/theme/components/CopyPageMenu.vue index e9d26391..8a85e93d 100644 --- a/docs/.vitepress/theme/components/CopyPageMenu.vue +++ b/docs/.vitepress/theme/components/CopyPageMenu.vue @@ -2,14 +2,18 @@