SettingsRow: filter clicks when grayed out

Also increased opacity a bit as it's hard to read the subtitle which is already grayed out.
This commit is contained in:
infinite-persistence 2022-03-22 09:55:18 +08:00 committed by Thomas Zarebczan
parent 9af32a0024
commit d13558297e

View file

@ -21,7 +21,7 @@ export default function SettingsRow(props: Props) {
<div
className={classnames('card__main-actions settings-row', {
'section__actions--between': !multirow,
'opacity-30': disabled,
'opacity-40': disabled,
'card--highlightedActive': highlighted,
})}
>
@ -40,6 +40,7 @@ export default function SettingsRow(props: Props) {
className={classnames('settings-row__value', {
'settings-row__value--multirow': multirow,
'settings-row__vertical-separator': useVerticalSeparator,
'content__non-clickable': disabled,
})}
>
{children && children}