Skip to content

Commit faf7049

Browse files
committed
fix: scroll and height problems
1 parent 869efe0 commit faf7049

File tree

2 files changed

+21
-39
lines changed

2 files changed

+21
-39
lines changed

src/components/AccountList/index.tsx

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,15 @@ export default function AccountList({ showMainWallet = true, simplifiedView = fa
6464
setIsRefreshingSolanaBalances(true);
6565

6666
try {
67-
let _randomSolanaRPC = randomSolanaRPC
68-
if (!_randomSolanaRPC) {
69-
const nodes = getAllNodes
70-
const index = Math.floor(Math.random() * (nodes.length - 1))
71-
await refreshSolanaBalances(profiles?.[1], nodes[index]);
72-
73-
} else {
74-
await refreshSolanaBalances(profiles?.[1], _randomSolanaRPC);
75-
}
76-
77-
78-
79-
67+
let _randomSolanaRPC = randomSolanaRPC
68+
if (!_randomSolanaRPC) {
69+
const nodes = getAllNodes
70+
const index = Math.floor(Math.random() * (nodes.length - 1))
71+
await refreshSolanaBalances(profiles?.[1], nodes[index]);
72+
73+
} else {
74+
await refreshSolanaBalances(profiles?.[1], _randomSolanaRPC);
75+
}
8076

8177
storeSystemData();
8278

@@ -164,7 +160,7 @@ export default function AccountList({ showMainWallet = true, simplifiedView = fa
164160
!simplifiedView && (
165161
<>
166162
<Separator />
167-
<div className="info-wrapper">
163+
<div className="info-wrapper" style={{ maxHeight: '200px', overflowY: 'auto' }}>
168164
<p>Silent Pass Passport</p>
169165
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '8px', width: '100%' }}>
170166
{(profiles?.[0]?.silentPassPassports && profiles?.[0]?.activePassport)

src/components/SwapInput/index.css

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,13 @@
1313
transition: height 0.2s ease;
1414
}
1515

16-
.account-wrapper .account-main-card img {
17-
transform: rotate(90deg);
18-
19-
transition: transform 0.12s ease-in-out;
20-
}
21-
22-
.account-wrapper.active .account-main-card img {
23-
transform: rotate(270deg);
24-
}
25-
2616
.account-wrapper.active {
2717
/* should create the animation */
28-
height: 540px;
18+
height: 600px;
2919
}
3020

3121
.solana.account-wrapper.active {
32-
height: 400px;
22+
height: 330px;
3323
}
3424

3525
.referral-program.account-wrapper.active {
@@ -231,8 +221,7 @@
231221
color: #5a5a5afe !important;
232222
}
233223

234-
235-
.input-box{
224+
.input-box {
236225
display: flex;
237226

238227
max-width: 370px;
@@ -244,19 +233,19 @@
244233
justify-content: space-between;
245234
}
246235

247-
.swap-button{
236+
.swap-button {
248237
display: flex;
249238
width: 40px;
250239
height: 40px;
251240
border-radius: 50%;
252-
background: var(--SilentPass-Blue01, rgba(159, 191, 229, 1.00));
241+
background: var(--SilentPass-Blue01, rgba(159, 191, 229, 1));
253242
justify-content: center;
254243
align-items: center;
255244
margin: -10px 0px;
256245
z-index: 2;
257246
}
258247

259-
.box-text{
248+
.box-text {
260249
font-weight: 400;
261250
line-height: 20px; /* 142.857% */
262251
letter-spacing: 0.25px;
@@ -267,9 +256,6 @@
267256
-moz-appearance: textfield;
268257
}
269258

270-
271-
272-
273259
.sp-selector {
274260
display: flex;
275261
align-items: center;
@@ -287,7 +273,7 @@
287273
display: flex;
288274
align-items: center;
289275
justify-content: center;
290-
background: #A9C3EF;
276+
background: #a9c3ef;
291277
border-radius: 50%;
292278
color: black;
293279
font-weight: bold;
@@ -306,13 +292,13 @@
306292
display: inline-block;
307293
}
308294

309-
.tab-selector{
310-
padding:8px 16px;
295+
.tab-selector {
296+
padding: 8px 16px;
311297
border-radius: 4px;
312298
font-size: 14px;
313299
}
314300

315-
.tab-selector:hover{
301+
.tab-selector:hover {
316302
background-color: #262626;
317303
cursor: pointer;
318-
}
304+
}

0 commit comments

Comments
 (0)