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

@@ -59,8 +59,6 @@ function CoverImage({
return { imageSize, canvasSize };
}, [blurRadius, margin]);
console.log({ src });
return (
<Container size={imageSize} style={style}>
<BlurContainer size={canvasSize} offset={blurRadius}>

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

View File

@@ -7,8 +7,8 @@ import TimerIcon from '@/assets/icons/timer.svg';
import { setTimerDate } from '@/store/sleep-timer';
import ticksToDuration from '@/utility/ticksToDuration';
import useDefaultStyles from '@/components/Colors';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { t } from '@/localisation';
import { TouchableOpacity } from 'react-native';
const Container = styled.View`
align-self: flex-start;