Put nbsp between labels and values, to make value selection slightly better

This commit is contained in:
2023-02-07 10:40:21 -06:00
parent 570bf05053
commit a5465cef3d

View File

@ -369,6 +369,7 @@ function RecordView({table, launchProcess}: Props): JSX.Element
<Box key={fieldName} flexDirection="row" pr={2}> <Box key={fieldName} flexDirection="row" pr={2}>
<Typography variant="button" textTransform="none" fontWeight="bold" pr={1} color="rgb(52, 71, 103)"> <Typography variant="button" textTransform="none" fontWeight="bold" pr={1} color="rgb(52, 71, 103)">
{tableMetaData.fields.get(fieldName).label}: {tableMetaData.fields.get(fieldName).label}:
<div style={{display: "inline-block", width: 0}}>&nbsp;</div>
</Typography> </Typography>
<Typography variant="button" textTransform="none" fontWeight="regular" color="rgb(123, 128, 154)"> <Typography variant="button" textTransform="none" fontWeight="regular" color="rgb(123, 128, 154)">
{ValueUtils.getDisplayValue(tableMetaData.fields.get(fieldName), record, "view")} {ValueUtils.getDisplayValue(tableMetaData.fields.get(fieldName), record, "view")}