diff --git a/src/main/TrackSelection.tsx b/src/main/TrackSelection.tsx index 878c8fa7e..533ad38e2 100644 --- a/src/main/TrackSelection.tsx +++ b/src/main/TrackSelection.tsx @@ -85,13 +85,21 @@ const TrackItem: React.FC<{track: Track, enabledCount: number}> = ({track, enabl display: 'flex', flexDirection: 'column', alignItems: 'left', - - width: '100%', - maxWidth: '500px', }); + const trackitemSubStyle = css({ + display: 'flex', + flexDirection: 'row', + ...(flexGapReplacementStyle(20, true)), + + justifyContent: 'space-around', + flexWrap: 'wrap', + }) + const playerStyle = css({ aspectRatio: '16 / 9', + width: '100%', + maxWidth: '457px', }); const headerStyle = css({ @@ -103,6 +111,15 @@ const TrackItem: React.FC<{track: Track, enabledCount: number}> = ({track, enabl }, }); + const buttonsStyle = css({ + // TODO: Avoid hard-coding max-width + "@media (max-width: 1550px)": { + width: '100%', + }, + display: 'flex', + flexDirection: 'column', + }) + // What state is the track in and can it be deactivated? // We do not permit deactivating the last remaining track // 2 -> Track is enabled and can be deactivated @@ -131,19 +148,24 @@ const TrackItem: React.FC<{track: Track, enabledCount: number}> = ({track, enabl return (