File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed
packages/web/src/pages/track-page/components/mobile Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change 11import { Nullable } from '@audius/common/utils'
2- import { spacing } from '@audius/harmony'
2+ import { Flex , spacing } from '@audius/harmony'
33
44import { CollapsibleContent } from 'components/collapsible-content/CollapsibleContent'
55import { 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}
You can’t perform that action at this time.
0 commit comments