refac
This commit is contained in:
@@ -144,7 +144,8 @@
|
||||
</div>
|
||||
{/if}
|
||||
<div
|
||||
class="flex-auto w-0 max-w-full {(message?.meta?.internal === true && message?.meta?.type === 'subagent') ||
|
||||
class="flex-auto w-0 max-w-full {(message?.meta?.internal === true &&
|
||||
message?.meta?.type === 'subagent') ||
|
||||
(message?.meta?.internal === true && message?.meta?.type === 'timer')
|
||||
? ''
|
||||
: 'pl-1'}"
|
||||
@@ -196,7 +197,7 @@
|
||||
{/if}
|
||||
|
||||
{#if edit === true}
|
||||
<div class=" w-full bg-gray-50 dark:bg-gray-800 rounded-3xl px-5 py-3 mb-2">
|
||||
<div class=" w-full bg-gray-50 dark:bg-gray-800 rounded-3xl px-4 py-3 mb-2">
|
||||
{#if (editedFiles ?? []).length > 0}
|
||||
<div class="flex items-center flex-wrap gap-2 -mx-2 mb-1">
|
||||
{#each editedFiles as file, fileIdx}
|
||||
@@ -294,11 +295,11 @@
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class=" mt-2 mb-1 flex justify-between text-sm font-normal">
|
||||
<div class=" mt-2 -mx-1 flex justify-between text-sm font-normal">
|
||||
<div>
|
||||
<button
|
||||
id="save-edit-message-button"
|
||||
class="px-3.5 py-1.5 bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 border border-gray-100 dark:border-gray-700 text-gray-700 dark:text-gray-200 transition rounded-3xl"
|
||||
class="px-2.5 py-1 bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 border border-gray-100 dark:border-gray-700 text-gray-700 dark:text-gray-200 transition rounded-3xl"
|
||||
on:click={() => {
|
||||
editMessageConfirmHandler(false);
|
||||
}}
|
||||
@@ -310,7 +311,7 @@
|
||||
<div class="flex space-x-1.5">
|
||||
<button
|
||||
id="close-edit-message-button"
|
||||
class="px-3.5 py-1.5 bg-white dark:bg-gray-900 hover:bg-gray-100 text-gray-800 dark:text-gray-100 transition rounded-3xl"
|
||||
class="px-2.5 py-1 bg-white dark:bg-gray-900 hover:bg-gray-100 text-gray-800 dark:text-gray-100 transition rounded-3xl"
|
||||
on:click={() => {
|
||||
cancelEditMessage();
|
||||
}}
|
||||
@@ -320,7 +321,7 @@
|
||||
|
||||
<button
|
||||
id="confirm-edit-message-button"
|
||||
class="px-3.5 py-1.5 bg-gray-900 dark:bg-white hover:bg-gray-850 text-gray-100 dark:text-gray-800 transition rounded-3xl"
|
||||
class="px-2.5 py-1 bg-gray-900 dark:bg-white hover:bg-gray-850 text-gray-100 dark:text-gray-800 transition rounded-3xl"
|
||||
on:click={() => {
|
||||
editMessageConfirmHandler();
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user