This commit is contained in:
Timothy Jaeryang Baek committed 2026-04-23 19:39:06 +09:00
1 parent f162d4de90
commit d56d74b387
2 files changed
+13 -117

No files matched your search

@@ -49,7 +49,7 @@
role="listitem"
class="flex flex-col justify-between px-5 mb-3 w-full {($settings?.widescreenMode ?? null)
? 'max-w-full'
: 'max-w-5xl'} mx-auto rounded-lg group"
: 'max-w-5xl'} mx-auto rounded-lg group message-listitem"
>
{#if history.messages[messageId]}
{#if history.messages[messageId].role === 'user'}
@@ -128,3 +128,14 @@
{/if}
{/if}
</div>
<style>
/* Browser-native virtualization: skip rendering of off-screen messages
without destroying their component trees. Replaces the JS-based
culling that caused catastrophic mount/destroy thrashing. */
.message-listitem {
content-visibility: auto;
contain-intrinsic-size: auto 150px;
}
</style>