-
Notifications
You must be signed in to change notification settings - Fork 5
Long text overflows instead of wrapping in the TextArea #4546 #4547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -200,7 +200,7 @@ const OccurrenceListRoot = <C extends InputTypeConfig = InputTypeConfig>({ | |
| : errors.validationResults; | ||
|
|
||
| return ( | ||
| <div data-component={OCCURRENCE_LIST_NAME} className='grid gap-y-2'> | ||
| <div data-component={OCCURRENCE_LIST_NAME} className='grid min-w-0 gap-y-2'> | ||
| <InputLabel input={input} /> | ||
| <Component | ||
| value={value} | ||
|
|
@@ -260,7 +260,7 @@ const OccurrenceListRoot = <C extends InputTypeConfig = InputTypeConfig>({ | |
| const showRemove = state.canRemove && state.values.length > 1; | ||
|
|
||
| return ( | ||
| <div data-component={OCCURRENCE_LIST_NAME} className='grid gap-y-2'> | ||
| <div data-component={OCCURRENCE_LIST_NAME} className='grid min-w-0 gap-y-2'> | ||
| <InputLabel input={input} /> | ||
| <SortableGridList | ||
| items={state.values} | ||
|
|
@@ -311,7 +311,7 @@ const OccurrenceListRoot = <C extends InputTypeConfig = InputTypeConfig>({ | |
| } | ||
|
|
||
| return ( | ||
| <div data-component={OCCURRENCE_LIST_NAME} className='grid gap-y-2'> | ||
| <div data-component={OCCURRENCE_LIST_NAME} className='grid min-w-0 gap-y-2'> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The problem is only for single occurrence, you sure we need this here too?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, if not we keep min-w-auto default behavior. |
||
| <InputLabel input={input} /> | ||
| <div className='flex flex-col gap-y-2.5'> | ||
| {state.values.map((_, i) => ( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is only for single occurrence, you sure we need this here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if not we keep min-w-auto default behavior.
Discovery: It might seem like textArea is wrapped in occurrence list even as a single component, to test make a new component text area input and inspect element.