Skip to content

Commit 8cea407

Browse files
committed
fix: update layout and styling for network assets header and item components
1 parent 0e80c0c commit 8cea407

2 files changed

Lines changed: 19 additions & 11 deletions

File tree

packages/extension/src/ui/action/views/network-assets/components/network-assets-header.vue

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="network-assets__header__token">
44
<p>Token</p>
55
</div>
6-
<div>
6+
<div class="network-assets__header__last24h">
77
<p>Last 24h</p>
88
</div>
99
<div class="network-assets__header__price">
@@ -18,10 +18,10 @@
1818
@import '@action/styles/theme.less';
1919
.network-assets {
2020
&__header {
21-
padding: 10px 20px 2px 20px;
21+
padding: 10px 24px 2px 24px;
2222
position: relative;
2323
display: flex;
24-
justify-content: space-between;
24+
justify-content: flex-start;
2525
align-items: end;
2626
flex-direction: row;
2727
p {
@@ -34,14 +34,24 @@
3434
margin: 0;
3535
}
3636
&__token {
37-
width: 196px;
37+
flex: 1;
38+
min-width: 0;
3839
p {
39-
padding-left: 48px;
40+
padding-left: 52px;
41+
}
42+
}
43+
44+
&__last24h {
45+
width: 80px;
46+
flex-shrink: 0;
47+
p {
48+
text-align: center;
4049
}
4150
}
4251
4352
&__price {
44-
width: 162px;
53+
width: 90px;
54+
flex-shrink: 0;
4555
p {
4656
text-align: end;
4757
}

packages/extension/src/ui/action/views/network-assets/components/network-assets-item.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ const toggleDetail = () => {
289289
flex-direction: column;
290290
align-items: center;
291291
gap: 4px;
292-
margin: 0 8px;
293-
min-width: 64px;
292+
width: 80px;
293+
flex-shrink: 0;
294294
}
295295
296296
&__change-badge {
@@ -304,7 +304,6 @@ const toggleDetail = () => {
304304
letter-spacing: 0.02em;
305305
306306
&.is-positive {
307-
background: rgba(34, 197, 94, 0.1);
308307
color: #16a34a;
309308
310309
svg {
@@ -314,7 +313,6 @@ const toggleDetail = () => {
314313
}
315314
316315
&.is-negative {
317-
background: rgba(239, 68, 68, 0.1);
318316
color: #dc2626;
319317
320318
svg {
@@ -332,7 +330,7 @@ const toggleDetail = () => {
332330
// Value Section
333331
&__value {
334332
text-align: right;
335-
min-width: 90px;
333+
width: 90px;
336334
flex-shrink: 0;
337335
}
338336

0 commit comments

Comments
 (0)