fix: UI improvements

This commit is contained in:
Aleksander Grygier 2026-02-06 04:03:06 +01:00
parent 3a64334f6c
commit 315448b0bc
3 changed files with 14 additions and 9 deletions

View File

@ -114,14 +114,19 @@
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
}
--chat-form-area-height: 24rem;
--min-message-height: 4.5rem;
--max-message-height: max(
var(--min-message-height),
min(80dvh, calc(100dvh - var(--chat-form-area-height) - 12rem))
);
:root {
--chat-form-area-height: 8rem;
--chat-form-area-offset: 2rem;
--max-message-height: max(24rem, min(80dvh, calc(100dvh - var(--chat-form-area-height) - 12rem)));
}
@media (min-width: 640px) {
:root{
--chat-form-area-height: 24rem;
--chat-form-area-offset: 12rem;
}
}
@layer base {

View File

@ -153,7 +153,7 @@
</Card>
{:else if isLoading}
<Card
class="relative overflow-hidden rounded-[1.125rem] border border-purple-200 bg-purple-500/10 backdrop-blur-md dark:border-purple-800 dark:bg-purple-500/20 py-2 px-1"
class="relative overflow-hidden rounded-[1.125rem] border border-purple-200 bg-purple-500/10 px-1 py-2 backdrop-blur-md dark:border-purple-800 dark:bg-purple-500/20"
>
<div
class="overflow-y-auto {paddingClass}"

View File

@ -133,7 +133,7 @@
});
</script>
<div class="flex h-full flex-col space-y-10 pt-16 md:pt-24 {className}" style="height: auto; ">
<div class="flex h-full flex-col space-y-10 pt-24 {className}" style="height: auto; ">
{#each displayMessages as { message, isLastAssistantMessage, siblingInfo } (message.id)}
<ChatMessage
class="mx-auto w-full max-w-[48rem]"