Skip to content

Commit

Permalink
Adjust paella quality selector css (#1122)
Browse files Browse the repository at this point in the history
fixes #1121 

Also removes duration from the displayed metadata table of live events,
as that is a very large number and therefore hard to parse at a glance
and also not really relevant in my opinion.
  • Loading branch information
LukasKalbertodt authored Feb 26, 2024
2 parents 97d28b2 + 42d2cfa commit b3f43a0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/routes/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ const MetadataTable = React.forwardRef<HTMLDListElement, MetadataTableProps>(({
}
}

if (event.syncedData?.duration) {
if (event.syncedData?.duration && !event.isLive) {
pairs.push([
t("video.duration"),
formatDuration(event.syncedData.duration),
Expand Down
17 changes: 17 additions & 0 deletions frontend/src/ui/player/Paella.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,23 @@ const PaellaPlayer: React.FC<PaellaPlayerProps> = ({
},
},

'& button[name="es.upv.paella.qualitySelector"] div': {
display: "flex",
justifyContent: "center",
alignItems: "center",
i: {
display: "none",
},
span: {
color: "black",
backgroundColor: "var(--main-fg-color)",
borderRadius: 3,
margin: "0 !important",
fontSize: "10px !important",
padding: "2px 3px",
},
},

"&.paella-fallback-fullscreen": {
position: "fixed",
top: 0,
Expand Down

0 comments on commit b3f43a0

Please sign in to comment.