fix: allow BaseViewTemplate content to scroll when taller than viewport

Using items-center on a flex container with overflow-auto cuts off the
top of content that exceeds the viewport height because flex centering
doesn't interact with scrolling. Replace with an m-auto inner wrapper,
which still centers short content but lets tall content flow naturally
and scroll. Fixes the long /connect panel being unscrollable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
snomiao
2026-04-12 03:06:19 +09:00
parent f7f80616e0
commit e2156dbe2a

View File

@@ -13,8 +13,10 @@
ref="topMenuRef"
class="app-drag h-(--comfy-topbar-height) w-full"
/>
<div class="flex w-full grow items-center justify-center overflow-auto">
<slot />
<div class="flex w-full grow justify-center overflow-auto">
<div class="m-auto py-8">
<slot />
</div>
</div>
</div>
</template>