Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/extension/src/ui/action/styles/color.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
@secondaryLabel: #5f6368;
@tertiaryLabel: rgba(0, 0, 0, 0.38);
@black: #000000;
@black06: rgba(0, 0, 0, 0.6);
@black07: rgba(0, 0, 0, 0.7);
@black007: rgba(0, 0, 0, 0.07);
@black004: rgba(0, 0, 0, 0.04);
@white: #ffffff;
@grayPrimary: rgba(95, 99, 104, 1);
@gray01: rgba(95, 99, 104, 0.1);
@gray02: rgba(95, 99, 104, 0.2);
@white07: rgba(255, 255, 255, 0.7);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<sparkline-down v-if="token.priceChangePercentage < 0" />

{{ token.priceChangePercentage.toFixed(2) }}%
<span class="asset-detail-view__last-24">Last 24h</span>
</p>
</div>
</div>
Expand Down Expand Up @@ -156,6 +157,14 @@ const close = () => {
height: auto;
box-sizing: border-box;

&__last-24 {
font-weight: 400;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.5px;
color: @grayPrimary;
}

&__wrap {
background: @white;
box-shadow:
Expand Down
27 changes: 27 additions & 0 deletions packages/extension/src/ui/action/views/network-assets/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
/>

<network-activity-action v-bind="$attrs" />
<div v-if="!isLoading" class="network-assets__headers">
<div>TOKEN</div>
<div>LAST 24HR</div>
<div>VALUE</div>
</div>
<network-assets-item
v-for="(item, index) in assets"
:key="index"
Expand Down Expand Up @@ -176,6 +181,28 @@ const addCustomAsset = (asset: AssetsType) => {
height: 100%;
box-sizing: border-box;

&__headers {
display: flex;
align-items: center;
justify-content: space-between;
width: 350px;
height: 21px;
padding: 0 20px 0 65px;
margin: 12px 12px 0;
font-size: 10px;
color: @black06;
font-weight: 500;
line-height: 11px;

div {
text-align: left;
}

div:nth-child(2) {
width: 65px;
}
}

&__scroll-area {
position: relative;
margin: auto;
Expand Down
Loading