This commit is contained in:
Timothy Jaeryang Baek 2026-11-02 02:02:51 +09:00
parent b96993c9b7
commit 1e8a21117e
2 changed files with 4 additions and 2 deletions

View file

@ -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' })
);
}

View file

@ -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"