Skip to content

Commit 003b494

Browse files
committed
frontend: fix settings-item height in scaled up mode
Fixed a bug caused by empy paragraph element, which increased settings item height unnecessarily.
1 parent 1128ab8 commit 003b494

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ export const SettingsItem = ({
5454
${styles.rightContentContainer || ''}
5555
${!notButton && styles.extraPadding || ''}
5656
`}>
57-
<p className={`
58-
${displayedValue && styles.displayedValue || ''}
59-
${extraComponent && styles.withMargin || ''}
60-
${hideDisplayedValueOnSmall && styles.hideDisplayedValueOnSmall || ''}
61-
`}>
62-
{displayedValue}
63-
</p>
57+
{displayedValue && (
58+
<p className={`
59+
${displayedValue && styles.displayedValue || ''}
60+
${extraComponent && styles.withMargin || ''}
61+
${hideDisplayedValueOnSmall && styles.hideDisplayedValueOnSmall || ''}
62+
`}>
63+
{displayedValue}
64+
</p>
65+
)}
6466
{canUpgrade && <RedDot width={8} height={8} />}
6567
{extraComponent ? extraComponent : null}
6668
</div>

0 commit comments

Comments
 (0)