Browse Source

refac: styling

Timothy J. Baek 7 tháng trước cách đây
mục cha
commit
98984166f9
2 tập tin đã thay đổi với 10 bổ sung4 xóa
  1. 4 0
      src/app.css
  2. 6 4
      src/lib/components/layout/Sidebar.svelte

+ 4 - 0
src/app.css

@@ -160,3 +160,7 @@ input[type='number'] {
 .svelte-flow {
 	background-color: transparent !important;
 }
+
+.bg-gray-950-90 {
+	background-color: rgba(var(--color-gray-950, #0d0d0d), 0.9);
+}

+ 6 - 4
src/lib/components/layout/Sidebar.svelte

@@ -382,11 +382,13 @@
 			</div>
 		{/if}
 
-		<div class="relative flex flex-col flex-1 overflow-y-auto">
+		<div
+			class="relative flex flex-col flex-1 overflow-y-auto {$temporaryChatEnabled
+				? 'opacity-20'
+				: ''}"
+		>
 			{#if $temporaryChatEnabled}
-				<div
-					class="absolute z-40 w-full h-full bg-gray-50/90 dark:bg-black/90 flex justify-center"
-				></div>
+				<div class="absolute z-40 w-full h-full flex justify-center"></div>
 			{/if}
 
 			<div class="px-2 mt-0.5 mb-2 flex justify-center space-x-2">