refac
This commit is contained in:
1 parent
be958d7b04
commit
7a11154182
3 files changed
+18
-5
No files matched your search
@@ -1858,7 +1858,10 @@
|
|||||||
id="message-input-container"
|
id="message-input-container"
|
||||||
class="flex-1 flex flex-col relative w-full shadow-lg rounded-3xl border {$temporaryChatEnabled
|
class="flex-1 flex flex-col relative w-full shadow-lg rounded-3xl border {$temporaryChatEnabled
|
||||||
? 'border-dashed border-gray-100 dark:border-gray-800 hover:border-gray-200 focus-within:border-gray-200 hover:dark:border-gray-700 focus-within:dark:border-gray-700'
|
? 'border-dashed border-gray-100 dark:border-gray-800 hover:border-gray-200 focus-within:border-gray-200 hover:dark:border-gray-700 focus-within:dark:border-gray-700'
|
||||||
: ' border-gray-100/30 dark:border-gray-850/30 hover:border-gray-200 focus-within:border-gray-100 hover:dark:border-gray-800 focus-within:dark:border-gray-800'} transition px-0.5 bg-white/5 dark:bg-gray-500/5 backdrop-blur-sm dark:text-gray-100"
|
: ' border-gray-100/30 dark:border-gray-850/30 hover:border-gray-200 focus-within:border-gray-100 hover:dark:border-gray-800 focus-within:dark:border-gray-800'} {($settings?.highContrastMode ??
|
||||||
|
false)
|
||||||
|
? 'focus-within:outline focus-within:outline-2 focus-within:-outline-offset-2 focus-within:outline-blue-500'
|
||||||
|
: ''} transition px-0.5 bg-white/5 dark:bg-gray-500/5 backdrop-blur-sm dark:text-gray-100"
|
||||||
dir={$settings?.chatDirection ?? 'auto'}
|
dir={$settings?.chatDirection ?? 'auto'}
|
||||||
>
|
>
|
||||||
{#if atSelectedModel !== undefined}
|
{#if atSelectedModel !== undefined}
|
||||||
|
|||||||
@@ -731,7 +731,12 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if edit === true}
|
{#if edit === true}
|
||||||
<div class="w-full bg-gray-50 dark:bg-gray-800 rounded-3xl px-3 py-3 my-2">
|
<div
|
||||||
|
class="w-full bg-gray-50 dark:bg-gray-800 rounded-3xl px-3 py-3 my-2 {($settings?.highContrastMode ??
|
||||||
|
false)
|
||||||
|
? 'focus-within:outline focus-within:outline-2 focus-within:-outline-offset-2 focus-within:outline-blue-500'
|
||||||
|
: ''}"
|
||||||
|
>
|
||||||
{#if editedOutput}
|
{#if editedOutput}
|
||||||
<!-- Structured output editor (visual + JSON toggle) -->
|
<!-- Structured output editor (visual + JSON toggle) -->
|
||||||
<OutputEditView
|
<OutputEditView
|
||||||
@@ -745,7 +750,7 @@
|
|||||||
<textarea
|
<textarea
|
||||||
id="message-edit-{message.id}"
|
id="message-edit-{message.id}"
|
||||||
bind:this={editTextAreaElement}
|
bind:this={editTextAreaElement}
|
||||||
class=" bg-transparent outline-hidden w-full resize-none text-[0.9375rem]"
|
class=" bg-transparent outline-hidden focus-visible:outline-none! w-full resize-none text-[0.9375rem]"
|
||||||
bind:value={editedContent}
|
bind:value={editedContent}
|
||||||
on:input={(e) => {
|
on:input={(e) => {
|
||||||
const messagesContainer = document.getElementById('messages-container');
|
const messagesContainer = document.getElementById('messages-container');
|
||||||
|
|||||||
@@ -202,7 +202,12 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if edit === true}
|
{#if edit === true}
|
||||||
<div class=" w-full bg-gray-50 dark:bg-gray-800 rounded-3xl px-4 py-3 mb-2">
|
<div
|
||||||
|
class=" w-full bg-gray-50 dark:bg-gray-800 rounded-3xl px-4 py-3 mb-2 {($settings?.highContrastMode ??
|
||||||
|
false)
|
||||||
|
? 'focus-within:outline focus-within:outline-2 focus-within:-outline-offset-2 focus-within:outline-blue-500'
|
||||||
|
: ''}"
|
||||||
|
>
|
||||||
{#if (editedFiles ?? []).length > 0}
|
{#if (editedFiles ?? []).length > 0}
|
||||||
<div class="flex items-center flex-wrap gap-2 -mx-2 mb-1">
|
<div class="flex items-center flex-wrap gap-2 -mx-2 mb-1">
|
||||||
{#each editedFiles as file, fileIdx}
|
{#each editedFiles as file, fileIdx}
|
||||||
@@ -273,7 +278,7 @@
|
|||||||
<textarea
|
<textarea
|
||||||
id="message-edit-{message.id}"
|
id="message-edit-{message.id}"
|
||||||
bind:this={messageEditTextAreaElement}
|
bind:this={messageEditTextAreaElement}
|
||||||
class=" bg-transparent outline-hidden w-full resize-none text-[0.9375rem]"
|
class=" bg-transparent outline-hidden focus-visible:outline-none! w-full resize-none text-[0.9375rem]"
|
||||||
bind:value={editedContent}
|
bind:value={editedContent}
|
||||||
on:input={(e) => {
|
on:input={(e) => {
|
||||||
const messagesContainer = document.getElementById('messages-container');
|
const messagesContainer = document.getElementById('messages-container');
|
||||||
|
|||||||
Reference in new issue
Block a user