Fix: left preview containment regression for file previews (#13652)

### What problem does this PR solve?

Fix left preview containment regression for file previews

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Idriss Sbaaoui
2026-03-17 17:21:13 +08:00
committed by GitHub
parent ca6c3218c3
commit ad6bdb5bfe

View File

@@ -193,8 +193,9 @@ const Chunk = () => {
<article className="w-2/5 flex flex-col">
<DocumentHeader className="flex-0 p-5 pb-0" {...documentInfo} />
<div className="flex-1 h-0 p-5 pt-2.5">
<div className="flex-1 h-0 min-h-0 overflow-hidden p-5 pt-2.5 [&>section]:h-full [&>section]:min-h-0">
<DocumentPreview
className="h-full min-h-0 overflow-auto [&_img]:max-w-full [&_img]:h-auto"
fileType={fileType}
highlights={highlights}
setWidthAndHeight={setWidthAndHeight}