mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Details CSS tweaks (again) (#6743)
* Details CSS tweaks (again) * Fix vertical alignment
This commit is contained in:
parent
97ec4d00ef
commit
08c0953eb7
@ -202,7 +202,8 @@ function TableStringValue(props: FieldProps) {
|
||||
style={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
wordBreak: 'break-word'
|
||||
wordBreak: 'break-word',
|
||||
alignItems: 'flex-start'
|
||||
}}
|
||||
>
|
||||
<Suspense fallback={<Skeleton width={200} height={20} radius="xl" />}>
|
||||
@ -366,22 +367,19 @@ export function DetailsTableField({
|
||||
const FieldType: any = getFieldType(field.type);
|
||||
|
||||
return (
|
||||
<tr>
|
||||
<tr style={{ verticalAlign: 'top' }}>
|
||||
<td
|
||||
style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: '20px',
|
||||
width: '50',
|
||||
justifyContent: 'flex-start'
|
||||
width: '50'
|
||||
}}
|
||||
>
|
||||
<InvenTreeIcon icon={(field.icon ?? field.name) as InvenTreeIconType} />
|
||||
</td>
|
||||
<td>
|
||||
<td style={{ minWidth: '25%', maxWidth: '65%' }}>
|
||||
<Text>{field.label}</Text>
|
||||
</td>
|
||||
<td style={{ minWidth: '40%' }}>
|
||||
<td style={{ width: '100%' }}>
|
||||
<FieldType field_data={field} field_value={item[field.name]} />
|
||||
</td>
|
||||
<td style={{ width: '50' }}>
|
||||
|
Loading…
Reference in New Issue
Block a user