Skip to content

Commit

Permalink
fix: Fix asset send styles, dialog style and enable enter signature
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed Oct 8, 2023
1 parent fea5df2 commit 4b36eeb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
6 changes: 4 additions & 2 deletions packages/neuron-ui/src/components/SUDTSend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,13 @@ const SUDTSend = () => {
<div className={styles.left}>
<div className={styles.info}>
<SUDTAvatar type="logo" />
<div>
<div className={styles.infoDetails}>
<div className={styles.accountName}>{accountInfo?.accountName}</div>
<div className={styles.tokenName}>{displayTokenName}</div>
<div className={styles.balance}>
{showBalance ? balance : HIDE_BALANCE} {displaySymbol}
<span>
{showBalance ? balance : HIDE_BALANCE} {displaySymbol}
</span>
<Button className={styles.btn} type="text" onClick={() => setShowBalance(prev => !prev)}>
{showBalance ? <EyesOpen /> : <EyesClose />}
</Button>
Expand Down
18 changes: 16 additions & 2 deletions packages/neuron-ui/src/components/SUDTSend/sUDTSend.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,25 @@ $bottomHeight: 186px;
}
}

$right-min-width: 476px;

.layout {
display: flex;

.left {
flex: 1;
position: relative;
max-width: calc(100% - $right-min-width);

.info {
padding: 20px 16px 16px;
@include card;
display: flex;
gap: 16px;
color: var(--main-text-color);
.infoDetails {
max-width: calc(100% - 48px);
}
.accountName {
font-weight: 500;
font-size: 14px;
Expand All @@ -42,10 +48,9 @@ $bottomHeight: 186px;
margin-top: 4px;
font-size: 12px;
line-height: 17px;
overflow: initial !important;
position: relative;
color: var(--input-second-color);
display: inline-flex;
@include text-overflow-ellipsis;
}
.balance {
margin-top: 8px;
Expand All @@ -54,10 +59,14 @@ $bottomHeight: 186px;
line-height: 22px;
display: flex;
align-items: center;
& > span {
@include text-overflow-ellipsis;
}
.btn {
height: 16px;
min-width: 16px;
padding: 0 8px;
flex-shrink: 0;
svg {
g,
path {
Expand Down Expand Up @@ -106,6 +115,10 @@ $bottomHeight: 186px;
}
.amount {
margin-top: 20px;

& > label {
@include text-overflow-ellipsis;
}
}
.max {
border-left: var(--divide-line-color) solid 1px;
Expand Down Expand Up @@ -162,6 +175,7 @@ $bottomHeight: 186px;
.right {
margin-left: 16px;
flex: 1;
min-width: $right-min-width;
@include card;

.rightContent {
Expand Down
1 change: 0 additions & 1 deletion packages/neuron-ui/src/components/SignAndVerify/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ const SignAndVerify = () => {
field="signature"
value={signature}
onChange={handleInputChange}
disabled={!signature}
width="100%"
/>

Expand Down
1 change: 1 addition & 0 deletions packages/neuron-ui/src/widgets/Dialog/dialog.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

.footerWrap {
height: 104px;
position: relative;
}

.footer {
Expand Down

0 comments on commit 4b36eeb

Please sign in to comment.