Skip to content

Commit 1fd6dfe

Browse files
authored
ui : fix ui clipping in mobile due to incorrect height setup (#24605)
1 parent acd79d6 commit 1fd6dfe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tools/ui/src/lib/components/ui/sidebar/sidebar-provider.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
data-slot="sidebar-wrapper"
4242
style="--sidebar-width: {sidebar.sidebarWidth}; --sidebar-min-width: {SIDEBAR_MIN_WIDTH}; --sidebar-max-width: {SIDEBAR_MAX_WIDTH}; --sidebar-width-icon: {SIDEBAR_WIDTH_ICON}; {style}"
4343
class={cn(
44-
'group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar',
44+
'group/sidebar-wrapper flex flex-col min-h-svh w-full has-data-[variant=inset]:bg-sidebar',
4545
className
4646
)}
4747
bind:this={ref}

tools/ui/src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@
312312
/>
313313

314314
<Sidebar.Provider bind:open={sidebarOpen}>
315-
<div class="flex h-screen w-full">
315+
<div class="flex h-full w-full grow">
316316
<Sidebar.Root variant="floating" class="h-full"
317317
><SidebarNavigation bind:this={chatSidebar} /></Sidebar.Root
318318
>

0 commit comments

Comments
 (0)