[PUI] Fix line-break for "details" field (#7616)

This commit is contained in:
Oliver 2024-07-11 12:01:04 +10:00 committed by GitHub
parent 8059fb1e05
commit 2e4ab45635
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -400,10 +400,10 @@ export function DetailsTableField({
> >
<InvenTreeIcon icon={field.icon ?? (field.name as InvenTreeIconType)} /> <InvenTreeIcon icon={field.icon ?? (field.name as InvenTreeIconType)} />
</Table.Td> </Table.Td>
<Table.Td style={{ maxWidth: '65%' }}> <Table.Td style={{ maxWidth: '65%', lineBreak: 'auto' }}>
<Text>{field.label}</Text> <Text>{field.label}</Text>
</Table.Td> </Table.Td>
<Table.Td style={{}}> <Table.Td style={{ lineBreak: 'anywhere' }}>
<FieldType field_data={field} field_value={fieldValue} /> <FieldType field_data={field} field_value={fieldValue} />
</Table.Td> </Table.Td>
<Table.Td style={{ width: '50' }}> <Table.Td style={{ width: '50' }}>