浏览代码

refac: styling

Timothy J. Baek 7 月之前
父节点
当前提交
49e9275c5b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/lib/components/chat/Messages/CodeBlock.svelte

+ 2 - 2
src/lib/components/chat/Messages/CodeBlock.svelte

@@ -297,9 +297,9 @@ __builtins__.input = input`);
 		{/if}
 	{:else}
 		<div
-			class="flex justify-between bg-[#202123] text-white text-xs px-4 pt-1 pb-0.5 rounded-t-lg relative overflow-x-auto"
+			class="flex justify-between bg-black/5 dark:bg-[#202123] dark:text-white text-xs px-4 pt-1 pb-0.5 rounded-t-lg relative"
 		>
-			<div class="p-1">{lang}</div>
+			<div class="p-1 font-medium">{lang}</div>
 
 			<div class="flex items-center sticky top-0">
 				{#if lang.toLowerCase() === 'python' || lang.toLowerCase() === 'py' || (lang === '' && checkPythonCode(code))}