Skip to content

Commit

Permalink
Place "View video" link above "Remove" button
Browse files Browse the repository at this point in the history
  • Loading branch information
kudlajz committed Jul 16, 2024
1 parent 9afc17c commit e30669d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions packages/slate-editor/src/extensions/video/components/VideoMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,6 @@ export function VideoMenu({
<>
<Toolbox.Header>Video settings</Toolbox.Header>

{!isSelfHosted && (
<Toolbox.Section noPadding>
<Button
type="link"
href={url}
target="_blank"
rel="noreferrer"
icon={ExternalLink}
iconPosition="right"
fullWidth
>
Go to video
</Button>
</Toolbox.Section>
)}

{info.length > 0 && (
<Toolbox.Section>
<InfoText.Structured className={styles.Info}>{info}</InfoText.Structured>
Expand Down Expand Up @@ -141,6 +125,22 @@ export function VideoMenu({
</Toolbox.Section>
)}

{!isSelfHosted && (
<Toolbox.Section noPadding>
<Button
type="link"
href={url}
target="_blank"
rel="noreferrer"
icon={ExternalLink}
iconPosition="right"
fullWidth
>
View video
</Button>
</Toolbox.Section>
)}

<Toolbox.Footer>
<Button variant="clear" icon={Delete} fullWidth onClick={onRemove}>
Remove
Expand Down

0 comments on commit e30669d

Please sign in to comment.