Skip to content

Commit ea61460

Browse files
committed
fix(hub-ui): prevent popup dock rails from scrolling out of view
Retained iframe panes can remain wider than the active viewport after a group sidebar appears. Their overflow lets Graph node centering scroll the outer DockStandalone grid and move the primary dock rail offscreen. Clip the outer grid and sized content viewport to contain retained panes and prevent programmatic scrolling of the dock layout while preserving iframe state and internal panel scrolling.
1 parent 6ba7c59 commit ea61460

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/hub-ui/src/client/components/dock/DockStandalone.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function switchEntry(id: string | undefined) {
5252
<div v-if="!isRpcTrusted" class="h-screen w-screen of-hidden">
5353
<ViewBuiltinClientAuthNotice :context="context" />
5454
</div>
55-
<div v-else class="h-screen w-screen of-hidden grid cols-[max-content_1fr]">
55+
<div v-else class="h-screen w-screen of-clip grid cols-[max-content_1fr]">
5656
<div class="border-r border-base flex flex-col min-h-0">
5757
<div class="p2 border-b border-base flex">
5858
<BrandMark class="w-7 h-7 ma" />
@@ -79,7 +79,7 @@ function switchEntry(id: string | undefined) {
7979
:group="activeGroup"
8080
:selected-id="context.docks.selected?.id ?? null"
8181
/>
82-
<div class="relative flex-1 min-w-0 min-h-0">
82+
<div class="relative flex-1 min-w-0 min-h-0 of-clip">
8383
<ViewEntry
8484
v-if="context.docks.selected && panes"
8585
:key="context.docks.selected.id"

0 commit comments

Comments
 (0)