mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-03 02:07:46 -05:00
refac
This commit is contained in:
1 parent
3288fe010a
commit
bbccff89c1
1 file changed
+5
-1
@@ -50,6 +50,10 @@
|
||||
export let topPadding = false;
|
||||
export let onInsertToNote: ((content: string) => void) | null = null;
|
||||
|
||||
// Keep the latest turn's real height when assigning a chat ID remounts the message list.
|
||||
$: isCurrentTurn =
|
||||
messageId === history.currentId || messageId === history.messages[history.currentId]?.parentId;
|
||||
|
||||
// WebKit's content-visibility implementation has paint bugs that leave
|
||||
// on-screen messages blank (#26712), so skip virtualization there
|
||||
// iOS WebViews and home screen apps carry no Safari token, hence the vendor check
|
||||
@@ -63,7 +67,7 @@
|
||||
class="flex flex-col justify-between px-3.5 mb-3 w-full {($settings?.widescreenMode ?? null)
|
||||
? 'max-w-full'
|
||||
: 'max-w-[58rem]'} mx-auto rounded-lg group message-listitem"
|
||||
class:message-virtualized={!isWebKit}
|
||||
class:message-virtualized={!isWebKit && !isCurrentTurn}
|
||||
>
|
||||
{#if history.messages[messageId]}
|
||||
{#if history.messages[messageId].role === 'user'}
|
||||
|
||||
Reference in new issue
Block a user