fix(webui): restore full width bottom bar spanning across carousel in file viewer

This commit is contained in:
yiling
2026-08-25 21:27:20 +08:00
parent 59e641ccb3
commit 49f3fc0be5
6 changed files with 205 additions and 151 deletions
+13 -16
View File
@@ -22,22 +22,19 @@ export function FileViewer({
const ViewerComponent = viewerDef.viewer
return (
<div className="flex flex-col-reverse md:flex-row flex-1 h-full min-h-0 relative">
<ViewerComponent
key={viewerDef.id}
ref={mediaControllerRef}
file={file}
onPlay={onPlay}
onPause={onPause}
onTimeUpdate={onTimeUpdate}
annotations={annotations}
startTime={startTime}
shareId={shareId}
allowDownload={allowDownload}
>
{children}
<div className="flex-1 min-w-0 h-full flex flex-col">
<ViewerComponent
key={file.id}
ref={mediaControllerRef}
file={file}
onPlay={onPlay}
onPause={onPause}
onTimeUpdate={onTimeUpdate}
annotations={annotations}
startTime={startTime}
shareId={shareId}
allowDownload={allowDownload}
/>
</div>
</div>
</ViewerComponent>
)
}