mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-29 19:15:39 +00:00
fix scroll for html & pdf
This commit is contained in:
parent
d45f51216e
commit
0dfa3dee92
2 changed files with 2 additions and 2 deletions
|
|
@ -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`}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue