mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 14:34:40 +00:00
fix(webui): restore full width bottom bar spanning across carousel in file viewer
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user