mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 00:30:51 +00:00
refac: styling
This commit is contained in:
parent
0fa85c5c64
commit
dfa5041b6f
@ -143,12 +143,14 @@
|
|||||||
{@const message = groupedMessages[modelIdx].messages[groupedMessagesIdx[modelIdx]]}
|
{@const message = groupedMessages[modelIdx].messages[groupedMessagesIdx[modelIdx]]}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class=" snap-center {$mobile
|
class=" snap-center w-full max-w-full m-1 border {history.messages[currentMessageId]
|
||||||
? 'min-w-full'
|
|
||||||
: 'min-w-80'} w-full max-w-full m-1 border {history.messages[currentMessageId]
|
|
||||||
?.modelIdx == modelIdx
|
?.modelIdx == modelIdx
|
||||||
? 'border-gray-100 dark:border-gray-800 border-[1.5px]'
|
? `border-gray-100 dark:border-gray-800 border-[1.5px] ${
|
||||||
: 'border-gray-50 dark:border-gray-850 border-dashed '} transition p-5 rounded-2xl"
|
$mobile ? 'min-w-full' : 'min-w-[32rem]'
|
||||||
|
}`
|
||||||
|
: `border-gray-50 dark:border-gray-850 border-dashed ${
|
||||||
|
$mobile ? 'min-w-full' : 'min-w-80'
|
||||||
|
}`} transition-[width] transform duration-300 p-5 rounded-2xl"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
if (currentMessageId != message.id) {
|
if (currentMessageId != message.id) {
|
||||||
currentMessageId = message.id;
|
currentMessageId = message.id;
|
||||||
|
Loading…
Reference in New Issue
Block a user