mirror of
https://github.com/open-webui/open-webui.git
synced 2026-02-24 04:00:31 +01:00
refac
This commit is contained in:
@@ -431,7 +431,7 @@
|
||||
// Auto-scroll to the embed once it's rendered in the DOM
|
||||
await tick();
|
||||
setTimeout(() => {
|
||||
const embedEl = document.getElementById(`${event.message_id}-embeds-0`);
|
||||
const embedEl = document.getElementById(`${event.message_id}-embeds-container`);
|
||||
if (embedEl) {
|
||||
embedEl.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
}
|
||||
|
||||
@@ -679,7 +679,10 @@
|
||||
{/if}
|
||||
|
||||
{#if message?.embeds && message.embeds.length > 0}
|
||||
<div class="my-1 w-full flex overflow-x-auto gap-2 flex-wrap">
|
||||
<div
|
||||
class="my-1 w-full flex overflow-x-auto gap-2 flex-wrap"
|
||||
id={`${message.id}-embeds-container`}
|
||||
>
|
||||
{#each message.embeds as embed, idx}
|
||||
<div class="my-2 w-full" id={`${message.id}-embeds-${idx}`}>
|
||||
<FullHeightIframe
|
||||
|
||||
Reference in New Issue
Block a user