fix: crash in android player modal

This commit is contained in:
Lei Nelissen
2025-01-29 15:27:21 +01:00
parent bf4b9bd446
commit b8a2c0d889
5 changed files with 25 additions and 12 deletions

View File

@@ -22,13 +22,13 @@ const Info = styled.View`
flex-shrink: 1;
`;
const Label = styled(Text)<{ overflow?: boolean }>`
const Label = styled(Text)<{ $overflow?: boolean }>`
opacity: 0.5;
font-size: 13px;
${(props) => props?.overflow && css`
${(props) => props?.$overflow ? css`
flex: 0 1 auto;
`}
`: null}
`;
/**
@@ -51,7 +51,7 @@ export default function MediaInformation() {
<Container>
<WaveformIcon fill={styles.icon.color} height={16} width={16} />
<Info>
<Label numberOfLines={1} overflow>
<Label numberOfLines={1} $overflow>
{albumTrack.Codec?.isDirectPlay ? t('direct-play') : t('transcoded')}
</Label>
<Label numberOfLines={1}>