mirror of
https://github.com/open-webui/open-webui
synced 2025-05-19 12:51:35 +00:00
refac: styling
This commit is contained in:
parent
8c64f0627c
commit
9ff74038b5
@ -71,8 +71,8 @@
|
|||||||
class=" snap-center min-w-80 w-full max-w-full m-1 outline outline-1 {history.messages[
|
class=" snap-center min-w-80 w-full max-w-full m-1 outline outline-1 {history.messages[
|
||||||
currentMessageId
|
currentMessageId
|
||||||
].model === model
|
].model === model
|
||||||
? 'outline-gray-200 dark:outline-gray-700 outline-2'
|
? 'outline-gray-100 dark:outline-gray-700 outline-2'
|
||||||
: 'outline-gray-100 dark:outline-gray-850 '} transition p-5 rounded-3xl"
|
: 'outline-gray-50 dark:outline-gray-850 '} transition p-5 rounded-3xl"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
currentMessageId = groupedMessages[model].messages[groupedMessagesIdx[model]].id;
|
currentMessageId = groupedMessages[model].messages[groupedMessagesIdx[model]].id;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
export let items = [{ value: 'mango', label: 'Mango' }];
|
export let items = [{ value: 'mango', label: 'Mango' }];
|
||||||
|
|
||||||
export let className = ' w-[30rem]';
|
export let className = 'w-[30rem]';
|
||||||
|
|
||||||
let show = false;
|
let show = false;
|
||||||
|
|
||||||
@ -203,7 +203,9 @@
|
|||||||
</DropdownMenu.Trigger>
|
</DropdownMenu.Trigger>
|
||||||
|
|
||||||
<DropdownMenu.Content
|
<DropdownMenu.Content
|
||||||
class=" z-40 {className} max-w-[calc(100vw-1rem)] justify-start rounded-xl bg-white dark:bg-gray-850 dark:text-white shadow-lg border border-gray-300/30 dark:border-gray-700/50 outline-none "
|
class=" z-40 {$mobile
|
||||||
|
? `w-full`
|
||||||
|
: `${className}`} max-w-[calc(100vw-1rem)] justify-start rounded-xl bg-white dark:bg-gray-850 dark:text-white shadow-lg border border-gray-300/30 dark:border-gray-700/50 outline-none "
|
||||||
transition={flyAndScale}
|
transition={flyAndScale}
|
||||||
side={$mobile ? 'bottom' : 'bottom-start'}
|
side={$mobile ? 'bottom' : 'bottom-start'}
|
||||||
sideOffset={4}
|
sideOffset={4}
|
||||||
|
@ -329,7 +329,6 @@
|
|||||||
info: model
|
info: model
|
||||||
}))}
|
}))}
|
||||||
bind:value={selectedModelId}
|
bind:value={selectedModelId}
|
||||||
className="w-[42rem]"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user