Skip to content

Commit f9f3e40

Browse files
committed
term info alignment
1 parent a92a035 commit f9f3e40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

applications/virtual-fly-brain/frontend/src/components/TermInfo/GeneralInformation.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ const GeneralInformation = ({ data, classes, showMetadataOnly = false }) => {
10731073
},
10741074
width: showMetadataOnly ? '100%' : 'initial'
10751075
}} size={{ xs: 12, sm: showMetadataOnly ? 12 : 8, md: showMetadataOnly ? 12 : 7, lg: showMetadataOnly ? 12 : 7 }}>
1076-
<Box display='flex' flexDirection='column' sx={{ rowGap: { xs: 1.25, sm: 1, lg: 1.25 }, width: showMetadataOnly ? '100%' : '15rem' }}>
1076+
<Box display='flex' flexDirection='column' sx={{ rowGap: { xs: 1.25, sm: 1, lg: 1.25 }, width: '100%' }}>
10771077
{getMetadataProperties().map(({ key, value, isStatic, isAlignedTo }) => {
10781078
// Handle special cases
10791079
if (key === 'Description' || key === 'Comment') {
@@ -1123,7 +1123,7 @@ const GeneralInformation = ({ data, classes, showMetadataOnly = false }) => {
11231123

11241124
return (
11251125
<Box key={key} display='flex' justifyContent='space-between' columnGap={key === 'Name' ? '0.188rem' : 1}>
1126-
<Typography sx={classes.heading}>{key}</Typography>
1126+
<Typography sx={{...classes.heading, paddingLeft: showMetadataOnly ? 0 : '1.5rem'}}>{key}</Typography>
11271127
{renderedValue}
11281128
</Box>
11291129
);

0 commit comments

Comments
 (0)