♻️(frontend) wrap text for long selected value

These changes should be discussed. Needed for the audio selects,
that render super long text values.

By default, centered texts are sometime hard to read.
This commit is contained in:
lebaudantoine
2024-08-30 15:30:26 +02:00
committed by aleb_the_flash
parent c4ececd03a
commit 85aa7a7251
2 changed files with 4 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import { Div } from './Div'
const FieldWrapper = styled('div', {
base: {
marginBottom: 'textfield',
minWidth: 0,
},
})

View File

@@ -43,6 +43,9 @@ const StyledButton = styled(Button, {
const StyledSelectValue = styled(SelectValue, {
base: {
textOverflow: 'ellipsis',
overflow: 'hidden',
textWrap: 'nowrap',
'&[data-placeholder]': {
color: 'default.subtle-text',
fontStyle: 'italic',