Skip to content

Commit d952678

Browse files
committed
frontend: apply displayedValue class conditionally to rm space
unuseful space was added due to always having `.displayedValue` class regardless when there's displayed value or not for `SettingsItem`. We should only add it if there's a displayed value.
1 parent 4cf3b3d commit d952678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontends/web/src/routes/settings/components/settingsItem/settingsItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const SettingsItem = ({
4444
<div className={styles.rightContentContainer}>
4545
<p className={
4646
`
47-
${styles.displayedValue}
47+
${displayedValue ? styles.displayedValue : ''}
4848
${extraComponent ? styles.withMargin : ''}
4949
${hideDisplayedValueOnSmall ? styles.hideDisplayedValueOnSmall : ''}
5050
`}

0 commit comments

Comments
 (0)