feat: UI improvements

This commit is contained in:
Aleksander Grygier 2026-02-09 19:38:44 +01:00
parent 23a09c90a0
commit cde9d45008
2 changed files with 5 additions and 3 deletions

View File

@ -28,8 +28,9 @@
{#if hasAttachments}
<div class={className}>
<HorizontalScrollCarousel gapSize="2">
{#each attachments as attachment (attachment.id)}
{#each attachments as attachment, i (attachment.id)}
<ChatAttachmentMcpResource
class={i === 0 ? 'ml-3' : ''}
{attachment}
onRemove={handleRemove}
onClick={() => handleResourceClick(attachment.resource.uri)}

View File

@ -508,11 +508,11 @@
/>
<div
class="flex-column relative min-h-[48px] items-center rounded-3xl p-2 pb-2.25 shadow-sm transition-all focus-within:shadow-md md:!p-3"
class="flex-column relative min-h-[48px] items-center rounded-3xl py-2 pb-2.25 shadow-sm transition-all focus-within:shadow-md md:!py-3"
onpaste={handlePaste}
>
<ChatFormTextarea
class="px-2 py-1.5 md:pt-0"
class="px-5 py-1.5 md:pt-0"
bind:this={textareaRef}
bind:value
onKeydown={handleKeydown}
@ -535,6 +535,7 @@
{/if}
<ChatFormActions
class="px-3"
bind:this={chatFormActionsRef}
canSend={canSubmit}
hasText={value.trim().length > 0}