mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-11 03:38:02 +00:00
refac
This commit is contained in:
parent
2dff26b1b9
commit
a92fcdf107
2 changed files with 9 additions and 2 deletions
|
|
@ -111,9 +111,14 @@
|
|||
</div>
|
||||
{/if}
|
||||
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||
<div
|
||||
class=" my-2.5 rounded-xl px-4 py-3 border border-gray-100/30 dark:border-gray-850/30"
|
||||
id="message-feedback-{message.id}"
|
||||
on:click={(e) => {
|
||||
e.stopPropagation();
|
||||
}}
|
||||
>
|
||||
<div class="flex justify-between items-center">
|
||||
<div class="text-sm font-normal">{$i18n.t('How would you rate this response?')}</div>
|
||||
|
|
|
|||
|
|
@ -1300,7 +1300,8 @@
|
|||
? 'bg-gray-100 dark:bg-gray-800'
|
||||
: ''} dark:hover:text-white hover:text-black transition disabled:cursor-progress disabled:hover:bg-transparent"
|
||||
disabled={feedbackLoading}
|
||||
on:click={async () => {
|
||||
on:click={async (e) => {
|
||||
e.stopPropagation();
|
||||
await feedbackHandler(1);
|
||||
window.setTimeout(() => {
|
||||
document
|
||||
|
|
@ -1338,7 +1339,8 @@
|
|||
? 'bg-gray-100 dark:bg-gray-800'
|
||||
: ''} dark:hover:text-white hover:text-black transition disabled:cursor-progress disabled:hover:bg-transparent"
|
||||
disabled={feedbackLoading}
|
||||
on:click={async () => {
|
||||
on:click={async (e) => {
|
||||
e.stopPropagation();
|
||||
await feedbackHandler(-1);
|
||||
window.setTimeout(() => {
|
||||
document
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue