From b4f04f9b7152431d75dc895e477f54a701c749a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Tue, 19 Dec 2023 16:31:03 +0100 Subject: [PATCH] Fixed number of lignes on DiscoveryCard --- front/components/V2/GoldenRatio.tsx | 2 +- front/components/V2/HomeMainSongCard.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/front/components/V2/GoldenRatio.tsx b/front/components/V2/GoldenRatio.tsx index 60c1913..bccf119 100644 --- a/front/components/V2/GoldenRatio.tsx +++ b/front/components/V2/GoldenRatio.tsx @@ -38,7 +38,7 @@ const GoldenRatio = (props: GoldenRatioProps) => { > } + header={} > diff --git a/front/components/V2/HomeMainSongCard.tsx b/front/components/V2/HomeMainSongCard.tsx index 0f655fe..82ce1ad 100644 --- a/front/components/V2/HomeMainSongCard.tsx +++ b/front/components/V2/HomeMainSongCard.tsx @@ -6,6 +6,7 @@ type HomeMainSongCardProps = { title: string; artist: string; fontSize: number; + numLinesHeader: number; onPress: () => void; }; @@ -66,7 +67,7 @@ const HomeMainSongCard = (props: HomeMainSongCardProps) => { fontSize: props.fontSize, fontWeight: 'bold', }} - numberOfLines={2} + numberOfLines={props.numLinesHeader} selectable={false} > {props.title} @@ -94,6 +95,7 @@ const HomeMainSongCard = (props: HomeMainSongCardProps) => { HomeMainSongCard.defaultProps = { onPress: () => {}, fontSize: 16, + numLinesHeader: 2, }; export default HomeMainSongCard;