mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-06 08:18:53 +00:00
fix: stabilize chat bubble width for code blocks in widescreen
This commit is contained in:
parent
2461121637
commit
6196663a69
4 changed files with 5 additions and 5 deletions
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
<div
|
||||
role="listitem"
|
||||
class="flex flex-col justify-between px-5 mb-3 w-full {($settings?.widescreenMode ?? null)
|
||||
class="flex flex-col justify-between px-5 mb-3 w-full min-w-0 {($settings?.widescreenMode ?? null)
|
||||
? 'max-w-full'
|
||||
: 'max-w-5xl'} mx-auto rounded-lg group"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -403,7 +403,7 @@
|
|||
{/if}
|
||||
</Name>
|
||||
|
||||
<div class="mt-1 markdown-prose w-full min-w-full">
|
||||
<div class="mt-1 markdown-prose w-full min-w-0">
|
||||
{#if (message?.content ?? '') === ''}
|
||||
<Skeleton />
|
||||
{:else}
|
||||
|
|
|
|||
|
|
@ -649,7 +649,7 @@
|
|||
</Name>
|
||||
|
||||
<div>
|
||||
<div class="chat-{message.role} w-full min-w-full markdown-prose">
|
||||
<div class="chat-{message.role} w-full min-w-0 markdown-prose">
|
||||
<div>
|
||||
{#if model?.info?.meta?.capabilities?.status_updates ?? true}
|
||||
<StatusHistory statusHistory={message?.statusHistory} />
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@
|
|||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="chat-{message.role} w-full min-w-full markdown-prose">
|
||||
<div class="chat-{message.role} w-full min-w-0 markdown-prose">
|
||||
{#if edit !== true}
|
||||
{#if message.files}
|
||||
<div
|
||||
|
|
@ -362,7 +362,7 @@
|
|||
<div class="flex {($settings?.chatBubble ?? true) ? 'justify-end pb-1' : 'w-full'}">
|
||||
<div
|
||||
class="rounded-3xl {($settings?.chatBubble ?? true)
|
||||
? `max-w-[90%] px-4 py-1.5 bg-gray-50 dark:bg-gray-850 ${
|
||||
? `max-w-[90%] min-w-0 px-4 py-1.5 bg-gray-50 dark:bg-gray-850 ${
|
||||
message.files ? 'rounded-tr-lg' : ''
|
||||
}`
|
||||
: ' w-full'}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue