Skip to content

Commit

Permalink
feat: Make Mulsig Addresses's More button more intuitive (#3203)
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan authored Jul 9, 2024
1 parent 88859a3 commit 79df3c0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/neuron-ui/src/components/MultisigAddress/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
Edit,
Confirming,
Question,
LineDownArrow,
} from 'widgets/Icons/icon'
import AttentionCloseDialog from 'widgets/Icons/Attention.png'
import { HIDE_BALANCE, NetworkType } from 'utils/const'
Expand Down Expand Up @@ -400,6 +401,7 @@ const MultisigAddress = () => {
<div className={styles.action}>
<Tooltip
tipClassName={styles.tip}
className={styles.tipContent}
tip={
<div className={styles.actionOptions}>
{(!multisigBanlances[item.fullPayload] || multisigBanlances[item.fullPayload] === '0'
Expand All @@ -422,7 +424,10 @@ const MultisigAddress = () => {
trigger="click"
showTriangle
>
<div className={styles.hoverBtn}>{t('multisig-address.table.more')}</div>
<div className={styles.hoverBtn}>
{t('multisig-address.table.more')}
<LineDownArrow className={styles.expand} />
</div>
</Tooltip>
</div>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,36 @@
padding-right: 30px;
&:hover {
color: var(--primary-color);
.expand {
path {
stroke: var(--primary-color);
}
}
}
}

.expand {
margin-left: 2px;
width: 12px;
path {
stroke: var(--secondary-text-color);
}
}

.tipContent {
&[data-tip-show='true'] {
.hoverBtn {
color: var(--primary-color);
}
.expand {
transform: rotate(180deg);
path {
stroke: var(--primary-color);
}
}
}
}

.action {
padding-right: 20px;
.tip {
Expand Down

0 comments on commit 79df3c0

Please sign in to comment.