mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Adjust vertical positions of field labels in edit mode
This commit is contained in:
@@ -34,7 +34,18 @@ export const ArrayToTable = ({ array, half }: { array: Array<Array<ReactNode>>;
|
||||
{array.map((row, index) => (
|
||||
<Grid key={index} container direction="row" minHeight="2.5em">
|
||||
{row.map((item, index) => (
|
||||
<Grid key={index} item xs={width} padding="5px">
|
||||
<Grid
|
||||
key={index}
|
||||
item
|
||||
xs={width}
|
||||
sx={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'left',
|
||||
height: '100%',
|
||||
}}
|
||||
padding="5px"
|
||||
>
|
||||
{typeof item === 'string' ? <b>{item}</b> : item}
|
||||
</Grid>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user