nicolium: use aspect ratio for audio component size
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -105,7 +105,6 @@ const StatusMedia: React.FC<IStatusMedia> = ({ status, muted = false, onClick })
|
||||
foregroundColor={attachment.meta.colors?.foreground}
|
||||
accentColor={attachment.meta.colors?.accent}
|
||||
duration={attachment.meta.original?.duration ?? 0}
|
||||
height={263}
|
||||
/>
|
||||
</Suspense>
|
||||
);
|
||||
|
||||
@ -465,7 +465,8 @@ const Audio: React.FC<IAudio> = (props) => {
|
||||
backgroundColor: _getBackgroundColor(),
|
||||
color: _getForegroundColor(),
|
||||
width: '100%',
|
||||
height: fullscreen ? '100%' : (height ?? props.height),
|
||||
height: fullscreen ? '100%' : undefined,
|
||||
aspectRatio: fullscreen ? undefined : '16 / 9',
|
||||
}}
|
||||
tabIndex={0}
|
||||
onKeyDown={handleKeyDown}
|
||||
|
||||
Reference in New Issue
Block a user