fix mobile style
This commit is contained in:
parent
c3cdc742ab
commit
4bbd831a16
2 changed files with 16 additions and 2 deletions
|
@ -205,7 +205,7 @@ function WalletSendTip(props: Props) {
|
|||
key={amount}
|
||||
disabled={amount > balance}
|
||||
button="alt"
|
||||
className={classnames('button-toggle', {
|
||||
className={classnames('button-toggle button-toggle--expandformobile', {
|
||||
'button-toggle--active': tipAmount === amount,
|
||||
'button-toggle--disabled': amount > balance,
|
||||
})}
|
||||
|
@ -215,7 +215,7 @@ function WalletSendTip(props: Props) {
|
|||
))}
|
||||
<Button
|
||||
button="alt"
|
||||
className={classnames('button-toggle', {
|
||||
className={classnames('button-toggle button-toggle--expandformobile', {
|
||||
'button-toggle--active': !DEFAULT_TIP_AMOUNTS.includes(tipAmount),
|
||||
})}
|
||||
label={__('Custom')}
|
||||
|
|
|
@ -120,6 +120,20 @@ svg + .button__label,
|
|||
}
|
||||
}
|
||||
|
||||
.button-toggle--expandformobile {
|
||||
@media (max-width: $breakpoint-small) {
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
border-radius: var(--border-radius);
|
||||
border: 1px solid var(--color-border);
|
||||
|
||||
&:not(:first-of-type) {
|
||||
margin-top: var(--spacing-s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.button-toggle--active {
|
||||
color: var(--color-primary);
|
||||
background-color: var(--color-primary-alt);
|
||||
|
|
Loading…
Reference in a new issue