From 63ce2d372cb080b09b24bbab7563a8014c607f39 Mon Sep 17 00:00:00 2001 From: Doxa Maps Date: Mon, 28 Sep 2026 17:03:45 +0000 Subject: [PATCH] Wire the back-to-top on both surfaces, from the side that owns the scroller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Driver asked for the arrow on the people-group grid and on the regions list. Those needed different wiring, and the reason is worth recording because it is not a preference. The regions dashboard owns its scroller: .rd-scroll has overflow-y:auto, so the plugin mounts the button itself and drives its own element. It deliberately does not touch the page's scroll — this renders inside a shadow root in someone else's page, and their scroll is not ours to move. The people-group grid owns no scroller at all. .pgg-root sets no overflow and .pgg-body has no rule; the grid simply grows and something outside it scrolls. In this shell that something is .vtl-host, which lives in the layout, outside every plugin's shadow root, so the grid could not reach it even if it should. So the arrow for that surface belongs in the layout, beside the circle the layout already owns, driving the pane it already owns. The grid is untouched. .vtl-host is per tab, so the arrow follows `active` rather than binding one ref, or it would scroll whichever pane rendered last. One component, two consumers, and each drives a scroller it actually owns. Checked that this adds nothing to the hardcoded-English census: 256 before, 256 after — the three regions entries there are PosterWall prop literals and predate this. --- library/layouts/VerticalTabsLayout.vue | 30 +++++++++++++++++-- .../regions-dashboard/region-dashboards.vue | 10 ++++++- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/library/layouts/VerticalTabsLayout.vue b/library/layouts/VerticalTabsLayout.vue index 61c825644..feac6a28f 100644 --- a/library/layouts/VerticalTabsLayout.vue +++ b/library/layouts/VerticalTabsLayout.vue @@ -129,6 +129,12 @@ class="vtl-fab" type="button" :aria-expanded="String(navOpen)" @click="navOpen = true" :aria-label="label('openViews')">☰ + + +
+ class="vtl-host" v-show="row.key === active" :hidden="row.key !== active" + :ref="el => { if (el) hostEls[row.key] = el; else delete hostEls[row.key] }">
{{ T('messages.loadingNamed', 'Loading {name}…').replace('{name}', row.label) }}
@@ -250,6 +257,7 @@