From b33b49789e495cf3f4a0ac4cfabfd4405f0ec1cc Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 5 Feb 2025 01:03:40 -0800 Subject: [PATCH] enh: responsive styling --- package-lock.json | 11 ++ package.json | 1 + src/lib/components/chat/Chat.svelte | 2 +- src/lib/components/chat/MessageInput.svelte | 112 ++++++++++---------- src/lib/components/chat/Placeholder.svelte | 10 +- tailwind.config.js | 3 +- 6 files changed, 77 insertions(+), 62 deletions(-) diff --git a/package-lock.json b/package-lock.json index f11493188..074ff21c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -69,6 +69,7 @@ "@sveltejs/adapter-static": "^3.0.2", "@sveltejs/kit": "^2.5.20", "@sveltejs/vite-plugin-svelte": "^3.1.1", + "@tailwindcss/container-queries": "^0.1.1", "@tailwindcss/typography": "^0.5.13", "@typescript-eslint/eslint-plugin": "^6.17.0", "@typescript-eslint/parser": "^6.17.0", @@ -2343,6 +2344,16 @@ "tslib": "^2.4.0" } }, + "node_modules/@tailwindcss/container-queries": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/container-queries/-/container-queries-0.1.1.tgz", + "integrity": "sha512-p18dswChx6WnTSaJCSGx6lTmrGzNNvm2FtXmiO6AuA1V4U5REyoqwmT6kgAsIMdjo07QdAfYXHJ4hnMtfHzWgA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "tailwindcss": ">=3.2.0" + } + }, "node_modules/@tailwindcss/typography": { "version": "0.5.13", "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.13.tgz", diff --git a/package.json b/package.json index 4f559d8a2..d2c4795c6 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@sveltejs/adapter-static": "^3.0.2", "@sveltejs/kit": "^2.5.20", "@sveltejs/vite-plugin-svelte": "^3.1.1", + "@tailwindcss/container-queries": "^0.1.1", "@tailwindcss/typography": "^0.5.13", "@typescript-eslint/eslint-plugin": "^6.17.0", "@typescript-eslint/parser": "^6.17.0", diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index ebb6126d1..cc14f2c6f 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1940,7 +1940,7 @@ {/if} -
+
{#if $settings?.landingPageMode === 'chat' || createMessagesList(history, history.currentId).length > 0}