mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user