fix scroll for html & pdf

This commit is contained in:
4pmtong 2026-03-07 21:30:49 +08:00
parent d45f51216e
commit 0dfa3dee92
2 changed files with 2 additions and 2 deletions

View file

@ -700,7 +700,7 @@ export default function Folder({ data: _data }: { data?: Agent }) {
{/* content */}
<div
className={`min-h-0 flex-1 ${selectedFile?.type === 'html' && !isShowSourceCode ? 'overflow-hidden' : 'scrollbar overflow-y-auto'}`}
className={`flex min-h-0 flex-1 flex-col ${selectedFile?.type === 'html' && !isShowSourceCode ? 'overflow-hidden' : 'scrollbar overflow-y-auto'}`}
>
<div
className={`flex min-h-full flex-col ${selectedFile?.type === 'html' && !isShowSourceCode ? '' : 'p-6'} file-viewer-content`}

View file

@ -542,7 +542,7 @@ code {
/* Scoped file viewer: prevent file content CSS from affecting sidebar and app layout */
.file-viewer-content {
contain: layout style;
contain: style;
isolation: isolate;
}