Skip to content

Commit 2b59cf1

Browse files
authored
Fix mobile-web track description (#11965)
1 parent a7866ce commit 2b59cf1

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

packages/web/src/pages/track-page/components/mobile/TrackDescription.tsx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Nullable } from '@audius/common/utils'
2-
import { spacing } from '@audius/harmony'
2+
import { Flex, spacing } from '@audius/harmony'
33

44
import { CollapsibleContent } from 'components/collapsible-content/CollapsibleContent'
55
import { UserGeneratedText } from 'components/user-generated-text'
@@ -19,13 +19,21 @@ export const TrackDescription = ({
1919
if (!description) return null
2020

2121
return (
22-
<CollapsibleContent
23-
id='track-description'
24-
collapsedHeight={DEFAULT_LINE_HEIGHT * MAX_DESCRIPTION_LINES}
25-
>
26-
<UserGeneratedText className={className} linkSource='track page'>
27-
{description}
28-
</UserGeneratedText>
29-
</CollapsibleContent>
22+
<Flex column w='100%'>
23+
<CollapsibleContent
24+
id='track-description'
25+
collapsedHeight={DEFAULT_LINE_HEIGHT * MAX_DESCRIPTION_LINES}
26+
>
27+
<Flex css={{ overflow: 'hidden', textWrap: 'wrap' }}>
28+
<UserGeneratedText
29+
variant='body'
30+
className={className}
31+
linkSource='track page'
32+
>
33+
{description}
34+
</UserGeneratedText>
35+
</Flex>
36+
</CollapsibleContent>
37+
</Flex>
3038
)
3139
}

0 commit comments

Comments
 (0)