mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
feat(VideoPageHeader): move DownloadControls to a new position in the layout
This commit is contained in:
@@ -190,6 +190,16 @@ export const VideoPageHeader = memo(function VideoPageHeader({
|
|||||||
onDelete={onDeleteVersion}
|
onDelete={onDeleteVersion}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<div className="hidden sm:block">
|
||||||
|
<DownloadControls
|
||||||
|
activeVersion={activeVersion}
|
||||||
|
videoCanDownload={videoCanDownload}
|
||||||
|
isDownloading={isDownloadingVideo}
|
||||||
|
activeDownloadTarget={activeDownloadTarget}
|
||||||
|
onDownload={onDownload}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
{mode === 'dashboard' && (
|
{mode === 'dashboard' && (
|
||||||
<>
|
<>
|
||||||
{canManageVideo ? (
|
{canManageVideo ? (
|
||||||
@@ -207,16 +217,6 @@ export const VideoPageHeader = memo(function VideoPageHeader({
|
|||||||
) : null}
|
) : null}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<div className="hidden sm:block">
|
|
||||||
<DownloadControls
|
|
||||||
activeVersion={activeVersion}
|
|
||||||
videoCanDownload={videoCanDownload}
|
|
||||||
isDownloading={isDownloadingVideo}
|
|
||||||
activeDownloadTarget={activeDownloadTarget}
|
|
||||||
onDownload={onDownload}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{versions.length >= 2 && (
|
{versions.length >= 2 && (
|
||||||
<Button variant="outline" size="sm" onClick={onOpenCompare} className="hidden sm:inline-flex">
|
<Button variant="outline" size="sm" onClick={onOpenCompare} className="hidden sm:inline-flex">
|
||||||
<GitCompareArrows className="h-4 w-4 mr-1" />
|
<GitCompareArrows className="h-4 w-4 mr-1" />
|
||||||
|
|||||||
Reference in New Issue
Block a user