nicolium: use aspect ratio for audio component size

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-15 21:45:47 +01:00
parent 4e739e0b28
commit b8941c4aee
2 changed files with 2 additions and 2 deletions

View File

@ -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>
);

View File

@ -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}