Skip to content

Commit c97d5d1

Browse files
authored
Upgrade tailwindcss to version 3.4 (#664)
* Upgrade tailwindcss to version 3.4 * lint
1 parent e656737 commit c97d5d1

File tree

8 files changed

+128
-78
lines changed

8 files changed

+128
-78
lines changed

package-lock.json

Lines changed: 116 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"postcss": "^8.4.31",
6565
"serpapi": "^1.1.1",
6666
"tailwind-scrollbar": "^3.0.0",
67-
"tailwindcss": "^3.3.1",
67+
"tailwindcss": "^3.4.0",
6868
"zod": "^3.22.3"
6969
},
7070
"optionalDependencies": {

src/lib/components/MobileNav.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</script>
3131

3232
<nav
33-
class="flex h-12 items-center justify-between border-b bg-gray-50 px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden"
33+
class="flex h-12 items-center justify-between border-b bg-gray-50 px-4 md:hidden dark:border-gray-800 dark:bg-gray-800/70"
3434
>
3535
<button
3636
type="button"

src/lib/components/NavMenu.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
</a>
6262
</div>
6363
<div
64-
class="scrollbar-custom flex flex-col gap-1 overflow-y-auto rounded-r-xl from-gray-50 px-3 pb-3 pt-2 dark:from-gray-800/30 max-sm:bg-gradient-to-t md:bg-gradient-to-l"
64+
class="scrollbar-custom flex flex-col gap-1 overflow-y-auto rounded-r-xl from-gray-50 px-3 pb-3 pt-2 max-sm:bg-gradient-to-t md:bg-gradient-to-l dark:from-gray-800/30"
6565
>
6666
{#each Object.entries(groupedConversations) as [group, convs]}
6767
{#if convs.length}
@@ -89,7 +89,7 @@
8989
>
9090
<button
9191
type="submit"
92-
class="ml-auto h-6 flex-none items-center gap-1.5 rounded-md border bg-white px-2 text-gray-700 shadow-sm group-hover:flex hover:shadow-none dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400 dark:hover:text-gray-300 md:hidden"
92+
class="ml-auto h-6 flex-none items-center gap-1.5 rounded-md border bg-white px-2 text-gray-700 shadow-sm group-hover:flex hover:shadow-none md:hidden dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400 dark:hover:text-gray-300"
9393
>
9494
Sign Out
9595
</button>

src/lib/components/chat/ChatIntroduction.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
{#each currentModelMetadata.promptExamples as example}
7979
<button
8080
type="button"
81-
class="rounded-xl border bg-gray-50 p-2.5 text-gray-600 hover:bg-gray-100 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700 sm:p-4"
81+
class="rounded-xl border bg-gray-50 p-2.5 text-gray-600 hover:bg-gray-100 sm:p-4 dark:border-gray-800 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700"
8282
on:click={() => dispatch("message", example.prompt)}
8383
>
8484
{example.title}

src/lib/components/chat/ChatMessage.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
{/if}
159159

160160
<div
161-
class="prose max-w-none dark:prose-invert max-sm:prose-sm prose-headings:font-semibold prose-h1:text-lg prose-h2:text-base prose-h3:text-base prose-pre:bg-gray-800 dark:prose-pre:bg-gray-900"
161+
class="prose max-w-none max-sm:prose-sm dark:prose-invert prose-headings:font-semibold prose-h1:text-lg prose-h2:text-base prose-h3:text-base prose-pre:bg-gray-800 dark:prose-pre:bg-gray-900"
162162
bind:this={contentEl}
163163
>
164164
{#each tokens as token}
@@ -266,7 +266,7 @@
266266
<div class="absolute right-0 top-3.5 flex gap-2 lg:-right-2">
267267
{#if downloadLink}
268268
<a
269-
class="rounded-lg border border-gray-100 p-1 text-xs text-gray-400 group-hover:block hover:text-gray-500 dark:border-gray-800 dark:text-gray-400 dark:hover:text-gray-300 md:hidden"
269+
class="rounded-lg border border-gray-100 p-1 text-xs text-gray-400 group-hover:block hover:text-gray-500 md:hidden dark:border-gray-800 dark:text-gray-400 dark:hover:text-gray-300"
270270
title="Download prompt and parameters"
271271
type="button"
272272
target="_blank"
@@ -277,7 +277,7 @@
277277
{/if}
278278
{#if !readOnly}
279279
<button
280-
class="cursor-pointer rounded-lg border border-gray-100 p-1 text-xs text-gray-400 group-hover:block hover:text-gray-500 dark:border-gray-800 dark:text-gray-400 dark:hover:text-gray-300 md:hidden lg:-right-2"
280+
class="cursor-pointer rounded-lg border border-gray-100 p-1 text-xs text-gray-400 group-hover:block hover:text-gray-500 md:hidden lg:-right-2 dark:border-gray-800 dark:text-gray-400 dark:hover:text-gray-300"
281281
title="Retry"
282282
type="button"
283283
on:click={() => dispatch("retry", { content: message.content, id: message.id })}

0 commit comments

Comments
 (0)