Skip to content

Commit

Permalink
styling change in fieldvaluelist
Browse files Browse the repository at this point in the history
  • Loading branch information
mohas22 authored and mohas22 committed Nov 8, 2024
1 parent c234165 commit 8df0fef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function FieldValueList(props: FieldValueListProps) {

function getGridItemLabel() {
return (
<Grid item xs={variant === 'stacked' ? 12 : 6} className={variant === 'stacked' ? classes.noPaddingBottom : ''}>
<Grid item xs={variant === 'stacked' ? 12 : 4} className={variant === 'stacked' ? classes.noPaddingBottom : ''}>
<Typography variant='body2' component='span' className={`${classes.fieldLabel}`}>
{name}
</Typography>
Expand All @@ -63,7 +63,7 @@ export default function FieldValueList(props: FieldValueListProps) {
const formattedValue = formatItemValue(value);

return (
<Grid item xs={variant === 'stacked' ? 12 : 6} className={variant === 'stacked' ? classes.noPaddingTop : ''}>
<Grid item xs={variant === 'stacked' ? 12 : 8} className={variant === 'stacked' ? classes.noPaddingTop : ''}>
{isHtml ? (
// eslint-disable-next-line react/no-danger
<div dangerouslySetInnerHTML={{ __html: formattedValue }} />
Expand Down

0 comments on commit 8df0fef

Please sign in to comment.