瀏覽代碼

refac: styling

Timothy J. Baek 7 月之前
父節點
當前提交
98984166f9
共有 2 個文件被更改,包括 10 次插入4 次删除
  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 {
 .svelte-flow {
 	background-color: transparent !important;
 	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>
 			</div>
 		{/if}
 		{/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}
 			{#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}
 			{/if}
 
 
 			<div class="px-2 mt-0.5 mb-2 flex justify-center space-x-2">
 			<div class="px-2 mt-0.5 mb-2 flex justify-center space-x-2">