Spaces:
Sleeping
Sleeping
layout misc
Browse files
src/lib/components/CodeBlock.svelte
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
</script>
|
17 |
|
18 |
<div class="group relative rounded-lg my-4">
|
19 |
-
<pre class="overflow-auto px-5
|
20 |
>{@html highlightedCode || code.replaceAll("<", "<")}</code
|
21 |
></pre>
|
22 |
<CopyToClipBoardBtn
|
|
|
16 |
</script>
|
17 |
|
18 |
<div class="group relative rounded-lg my-4">
|
19 |
+
<pre class="overflow-auto px-5"><code class="language-{lang}"
|
20 |
>{@html highlightedCode || code.replaceAll("<", "<")}</code
|
21 |
></pre>
|
22 |
<CopyToClipBoardBtn
|
src/lib/components/chat/ChatMessage.svelte
CHANGED
@@ -63,13 +63,13 @@
|
|
63 |
class="mt-5 w-3 h-3 flex-none rounded-full shadow-lg"
|
64 |
/>
|
65 |
<div
|
66 |
-
class="relative rounded-2xl px-5 py-3.5 border border-gray-100 bg-gradient-to-br from-gray-50 dark:from-gray-800/40 dark:border-gray-800 text-gray-600 dark:text-gray-300 min-h-[calc(2rem+theme(spacing[3.5])*2)] min-w-[100px]"
|
67 |
>
|
68 |
{#if !message.content}
|
69 |
<IconLoading classNames="absolute inset-0 m-auto" />
|
70 |
{/if}
|
71 |
<div
|
72 |
-
class="prose dark:prose-invert
|
73 |
bind:this={contentEl}
|
74 |
>
|
75 |
{#each tokens as token}
|
|
|
63 |
class="mt-5 w-3 h-3 flex-none rounded-full shadow-lg"
|
64 |
/>
|
65 |
<div
|
66 |
+
class="relative rounded-2xl prose-pre:my-2 px-5 py-3.5 border border-gray-100 bg-gradient-to-br from-gray-50 dark:from-gray-800/40 dark:border-gray-800 text-gray-600 dark:text-gray-300 min-h-[calc(2rem+theme(spacing[3.5])*2)] min-w-[100px]"
|
67 |
>
|
68 |
{#if !message.content}
|
69 |
<IconLoading classNames="absolute inset-0 m-auto" />
|
70 |
{/if}
|
71 |
<div
|
72 |
+
class="prose dark:prose-invert prose-pre:bg-gray-800 dark:prose-pre:bg-gray-900 prose-h1:text-lg prose-h2:text-base prose-h3:text-base prose-headings:font-semibold max-w-none"
|
73 |
bind:this={contentEl}
|
74 |
>
|
75 |
{#each tokens as token}
|
src/routes/+layout.svelte
CHANGED
@@ -97,7 +97,7 @@
|
|
97 |
<a
|
98 |
data-sveltekit-noscroll
|
99 |
href="{base}/conversation/{conv.id}"
|
100 |
-
class="pl-3 pr-2 h-
|
101 |
$page.params.id
|
102 |
? 'bg-gray-100 dark:bg-gray-700'
|
103 |
: ''}"
|
|
|
97 |
<a
|
98 |
data-sveltekit-noscroll
|
99 |
href="{base}/conversation/{conv.id}"
|
100 |
+
class="pl-3 pr-2 h-11 group rounded-lg flex-none text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center gap-1.5 {conv.id ===
|
101 |
$page.params.id
|
102 |
? 'bg-gray-100 dark:bg-gray-700'
|
103 |
: ''}"
|