diff --git a/src/lib/components/chat/ChatTabs.svelte b/src/lib/components/chat/ChatTabs.svelte index 413693349f..a163931b5f 100644 --- a/src/lib/components/chat/ChatTabs.svelte +++ b/src/lib/components/chat/ChatTabs.svelte @@ -182,7 +182,9 @@ $: if (activeTabId && panelTarget) { const id = activeTabId; void tick().then(() => - document.getElementById(domId(id))?.scrollIntoView({ block: 'nearest', inline: 'nearest' }) + document + .getElementById(domId(id)) + ?.parentElement?.scrollIntoView({ block: 'nearest', inline: 'nearest' }) ); } diff --git a/src/lib/components/chat/ChatTabs/Browser.svelte b/src/lib/components/chat/ChatTabs/Browser.svelte index bb7e130c07..9519e4f338 100644 --- a/src/lib/components/chat/ChatTabs/Browser.svelte +++ b/src/lib/components/chat/ChatTabs/Browser.svelte @@ -429,7 +429,7 @@ bind:this={iframe} src={frameUrl} title={$i18n.t('Browser')} - class="block h-full w-full border-0 bg-white dark:bg-gray-900" + class="block h-full w-full border-0 bg-white" sandbox="allow-scripts{!session && ($settings?.terminalPreviewAllowSameOrigin ?? false) ? ' allow-same-origin' : ''} allow-forms allow-popups allow-modals allow-downloads"