File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
protocol-designer/src/molecules/DropdownStepFormField Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ export function DropdownMenu(props: DropdownMenuProps): JSX.Element {
330
330
>
331
331
< StyledText
332
332
desktopStyle = "captionRegular"
333
- css = { LINE_CLAMP_TEXT_STYLE ( 3 ) }
333
+ css = { LINE_CLAMP_TEXT_STYLE ( 3 , true ) }
334
334
>
335
335
{ option . name }
336
336
</ StyledText >
@@ -369,15 +369,15 @@ export function DropdownMenu(props: DropdownMenuProps): JSX.Element {
369
369
370
370
export const LINE_CLAMP_TEXT_STYLE = (
371
371
lineClamp ?: number ,
372
- title ?: boolean
372
+ wordBreak ?: boolean
373
373
) : FlattenSimpleInterpolation => css `
374
374
display : -webkit-box;
375
375
-webkit-box-orient : vertical;
376
376
overflow : ${ OVERFLOW_HIDDEN } ;
377
377
text-overflow : ellipsis;
378
378
word-wrap : break-word;
379
379
-webkit-line-clamp : ${ lineClamp ?? 1 } ;
380
- word-break : ${ title === true
380
+ word-break : ${ wordBreak === true
381
381
? 'normal'
382
382
: 'break-all' } ; // normal for tile and break-all for a non word case like aaaaaaaa
383
383
`
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export function DropdownStepFormField(
125
125
>
126
126
< StyledText
127
127
desktopStyle = "captionRegular"
128
- css = { LINE_CLAMP_TEXT_STYLE ( 3 ) }
128
+ css = { LINE_CLAMP_TEXT_STYLE ( 3 , true ) }
129
129
>
130
130
{ options [ 0 ] . name }
131
131
</ StyledText >
You can’t perform that action at this time.
0 commit comments