fix(web): 修复弹窗裁切/宽度与日期选择器

This commit is contained in:
clz
2026-01-18 20:17:48 +08:00
parent f5afb0c135
commit c61691249f
9 changed files with 40 additions and 41 deletions

View File

@@ -20,14 +20,14 @@
{#if isMobile.current}
<Sheet.Content
{side}
class={cn('max-h-[90vh] overflow-hidden flex flex-col', className)}
class={cn('max-h-[90vh] overflow-y-auto flex flex-col', className)}
>
<!-- 拖拽指示器 (移动端抽屉常见设计) -->
<div class="mx-auto mt-2 h-1.5 w-12 shrink-0 rounded-full bg-muted"></div>
{@render children?.()}
</Sheet.Content>
{:else}
<Dialog.Content class={cn('max-h-[85vh] overflow-hidden flex flex-col', className)}>
<Dialog.Content class={cn('max-h-[85vh] overflow-y-auto flex flex-col', className)}>
{@render children?.()}
</Dialog.Content>
{/if}