Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
animation fix and minor ui updates
Browse files Browse the repository at this point in the history
  • Loading branch information
isunaslabs committed Sep 14, 2022
1 parent dadb858 commit a4e7ee0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/components/ConnectWalletButton/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const ConnectWalletButton = () => {
<li key={index} className={styles.networkItem}>
{
connected && connected.index === index ? (
<span style={{padding: '4.55px 0', display: 'inline-block', fontWeight: 'bold'}}>
<span className={styles.connectedTo}>
Connected to {connected.chainName}: {ellipsisAddress(connected.account)}
</span>
): (
Expand All @@ -157,7 +157,7 @@ const ConnectWalletButton = () => {
<div>
<Notification ref={notificationRef}/>
<Dialog ref={dialogRef}
title={<h3 className={styles.chainSelectModalTitle}>Please select a network to connect</h3>}
title={<div className={styles.chainSelectModalTitle}>Please select a network to connect</div>}
body={dialogBody()}/>
<button className={styles.connectWalletBtn} onClick={() => {
handleConnectToWallet()
Expand Down
22 changes: 12 additions & 10 deletions src/components/ConnectWalletButton/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,40 +1,42 @@
.connectWalletBtn {
outline: none;
border: 2px solid rgb(216,0,115);
border-radius: 20px;
padding: 4px 8px;
border: 1px solid rgb(216,0,115);
border-radius: 0.25rem;
padding: 6px 15px;
background: transparent;
color: rgb(216,0,115);
margin-right: 10px;
font-weight: 700;
font-size: medium;
}
.connectWalletBtn:hover {
opacity: 0.7;
cursor: pointer;
}
.chainSelectModalTitle {
font-weight: bold;
font-size: larger;
margin: 0;
font-weight: 400;
font-size: 19px;
}
.networkItem {
margin: 10px 0;
}
.networkOption {
padding: 8px 20px;
display: inline-block;
border: 2px solid rgb(216,0,115);
border-radius: 20px;
border: 1px solid rgb(216,0,115);
border-radius: 0.25rem;
min-width: 110px;
text-align: center;
background: transparent;
font-weight: bold;
font-size: 16px;
}
.networkOption:hover {
opacity: 0.7;
cursor: pointer;
}
.connectedTo {
padding: 4.55px 0;
display: inline-block;
}

@media (max-width: 996px) {
.connectWalletBtn {
Expand Down
8 changes: 4 additions & 4 deletions src/components/Notification/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ html[data-theme='dark'] .wrapper {
}
.enterActive {
transition: transform 200ms ease-in-out;
transform: translate3d(0, 0, 0);
transform: translate3d(1px, 0, 0);
}
.enterDone {
transform: translate3d(0, 0, 0);
transform: translate3d(0px, 0, 0);
}
.exit {
transform: translate3d(0, 0, 0);
transform: translate3d(1px, 0, 0);
}
.exitActive {
transition: transform 200ms ease-in-out;
transform: translate3d(110%, 0, 0);
transform: translate3d(109%, 0, 0);
}
.exitDone {
transform: translate3d(110%, 0, 0);
Expand Down

0 comments on commit a4e7ee0

Please sign in to comment.