forked from open-webui/open-webui
fix: styling
This commit is contained in:
parent
23d7123364
commit
7ac338ae31
2 changed files with 9 additions and 9 deletions
|
@ -363,7 +363,7 @@
|
||||||
<button
|
<button
|
||||||
class="{isLastMessage
|
class="{isLastMessage
|
||||||
? 'visible'
|
? 'visible'
|
||||||
: 'invisible group-hover:visible'} p-1 rounded dark:hover:bg-gray-800 transition"
|
: 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white transition"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
editMessageHandler();
|
editMessageHandler();
|
||||||
}}
|
}}
|
||||||
|
@ -387,7 +387,7 @@
|
||||||
<button
|
<button
|
||||||
class="{isLastMessage
|
class="{isLastMessage
|
||||||
? 'visible'
|
? 'visible'
|
||||||
: 'invisible group-hover:visible'} p-1 rounded dark:hover:bg-gray-800 transition copy-response-button"
|
: 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white transition copy-response-button"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
copyToClipboard(message.content);
|
copyToClipboard(message.content);
|
||||||
}}
|
}}
|
||||||
|
@ -412,7 +412,7 @@
|
||||||
class="{isLastMessage
|
class="{isLastMessage
|
||||||
? 'visible'
|
? 'visible'
|
||||||
: 'invisible group-hover:visible'} p-1 rounded {message.rating === 1
|
: 'invisible group-hover:visible'} p-1 rounded {message.rating === 1
|
||||||
? 'bg-gray-100 dark:bg-gray-900'
|
? 'bg-gray-100 dark:bg-gray-800'
|
||||||
: ''} transition"
|
: ''} transition"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
rateMessage(message.id, 1);
|
rateMessage(message.id, 1);
|
||||||
|
@ -436,7 +436,7 @@
|
||||||
class="{isLastMessage
|
class="{isLastMessage
|
||||||
? 'visible'
|
? 'visible'
|
||||||
: 'invisible group-hover:visible'} p-1 rounded {message.rating === -1
|
: 'invisible group-hover:visible'} p-1 rounded {message.rating === -1
|
||||||
? 'bg-gray-100 dark:bg-gray-900'
|
? 'bg-gray-100 dark:bg-gray-800'
|
||||||
: ''} transition"
|
: ''} transition"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
rateMessage(message.id, -1);
|
rateMessage(message.id, -1);
|
||||||
|
@ -460,7 +460,7 @@
|
||||||
<button
|
<button
|
||||||
class="{isLastMessage
|
class="{isLastMessage
|
||||||
? 'visible'
|
? 'visible'
|
||||||
: 'invisible group-hover:visible'} p-1 rounded dark:hover:bg-gray-800 transition"
|
: 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white transition"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
if (!loadingSpeech) {
|
if (!loadingSpeech) {
|
||||||
toggleSpeakMessage(message);
|
toggleSpeakMessage(message);
|
||||||
|
@ -534,7 +534,7 @@
|
||||||
<button
|
<button
|
||||||
class=" {isLastMessage
|
class=" {isLastMessage
|
||||||
? 'visible'
|
? 'visible'
|
||||||
: 'invisible group-hover:visible'} p-1 rounded dark:hover:bg-gray-800 transition whitespace-pre-wrap"
|
: 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white transition whitespace-pre-wrap"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
console.log(message);
|
console.log(message);
|
||||||
}}
|
}}
|
||||||
|
@ -562,7 +562,7 @@
|
||||||
type="button"
|
type="button"
|
||||||
class="{isLastMessage
|
class="{isLastMessage
|
||||||
? 'visible'
|
? 'visible'
|
||||||
: 'invisible group-hover:visible'} p-1 rounded dark:hover:bg-gray-800 transition regenerate-response-button"
|
: 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white transition regenerate-response-button"
|
||||||
on:click={regenerateResponse}
|
on:click={regenerateResponse}
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
|
|
|
@ -239,7 +239,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="invisible group-hover:visible p-1 rounded dark:hover:bg-gray-800 transition edit-user-message-button"
|
class="invisible group-hover:visible p-1 rounded dark:hover:text-white transition edit-user-message-button"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
editMessageHandler();
|
editMessageHandler();
|
||||||
}}
|
}}
|
||||||
|
@ -261,7 +261,7 @@
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="invisible group-hover:visible p-1 rounded dark:hover:bg-gray-800 transition"
|
class="invisible group-hover:visible p-1 rounded dark:hover:text-white transition"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
copyToClipboard(message.content);
|
copyToClipboard(message.content);
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue