Skip to content

Commit

Permalink
Small video page adjustments (#825)
Browse files Browse the repository at this point in the history
- adds some `viewportMargin` to the download menu
- prevents share menu header tabs getting too large on small screens
  • Loading branch information
LukasKalbertodt committed May 15, 2023
2 parents 955f224 + 2050a6e commit fc8ba4b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/routes/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,12 @@ const Metadata: React.FC<MetadataProps> = ({ id, event }) => {
<VideoDate event={event} />
</div>
{/* Buttons */}
<div css={{ display: "flex", gap: 8, flexWrap: "wrap", button: { ...shrinkOnMobile } }}>
<div css={{
display: "flex",
gap: 8,
flexWrap: "wrap",
"> button": { ...shrinkOnMobile },
}}>
{event.canWrite && user !== "none" && user !== "unknown" && (
<LinkButton to={`/~manage/videos/${id.slice(2)}`} css={{
"&:not([disabled])": { color: COLORS.primary0 },
Expand Down Expand Up @@ -498,6 +503,7 @@ const DownloadButton: React.FC<{ event: SyncedEvent }> = ({ event }) => {
arrowSize={12}
ariaRole="dialog"
trigger="click"
viewPortMargin={12}
>
<FloatingTrigger>
<Button>
Expand Down

0 comments on commit fc8ba4b

Please sign in to comment.