Skip to content

Commit

Permalink
Use ch units instead of em, absolute positioned reset button
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Jul 4, 2023
1 parent 4514a2e commit ed671ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/tx-flow/common/TxNonce/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const TxNonceForm = ({ nonce, recommendedNonce }: { nonce: number; recommendedNo
className={css.input}
title={field.value}
sx={{
minWidth: `clamp(1em, ${field.value.length}em, 200px)`,
minWidth: `clamp(1ch, ${field.value.length}ch, 200px)`,
}}
/>
</Tooltip>
Expand Down
4 changes: 3 additions & 1 deletion src/components/tx-flow/common/TxNonce/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

.input input {
font-weight: bold;
padding-right: 6px !important;
padding-right: 30px !important;
}

.adornment {
margin-left: 0;
margin-right: 4px;
position: absolute;
right: 0;
}

0 comments on commit ed671ae

Please sign in to comment.