Răsfoiți Sursa

refac: styling

Timothy Jaeryang Baek 2 luni în urmă
părinte
comite
ff9f2614f3
1 a modificat fișierele cu 7 adăugiri și 2 ștergeri
  1. 7 2
      src/routes/(app)/+layout.svelte

+ 7 - 2
src/routes/(app)/+layout.svelte

@@ -38,7 +38,8 @@
 		showChangelog,
 		temporaryChatEnabled,
 		toolServers,
-		showSearch
+		showSearch,
+		showSidebar
 	} from '$lib/stores';
 
 	import Sidebar from '$lib/components/layout/Sidebar.svelte';
@@ -339,7 +340,11 @@
 				{#if loaded}
 					<slot />
 				{:else}
-					<div class="w-full flex-1 h-full flex items-center justify-center">
+					<div
+						class="w-full flex-1 h-full flex items-center justify-center {$showSidebar
+							? '  md:max-w-[calc(100%-260px)]'
+							: ' '}"
+					>
 						<Spinner className="size-5" />
 					</div>
 				{/if}