From f508fe9e6dd771debbf81c5fa1f6b371362c4b7a Mon Sep 17 00:00:00 2001 From: olgakup <16910687+olgakup@users.noreply.github.com> Date: Thu, 2 Jan 2025 17:01:37 -0800 Subject: [PATCH] devop: adjust actions ui bg, spacing in tokens and add header --- .../extension/src/ui/action/styles/color.less | 1 + .../components/network-activity-action.vue | 4 +- .../components/network-assets-header.vue | 54 +++++++++++++++++++ .../components/network-assets-item.vue | 20 +++---- .../ui/action/views/network-assets/index.vue | 2 + 5 files changed, 69 insertions(+), 12 deletions(-) create mode 100644 packages/extension/src/ui/action/views/network-assets/components/network-assets-header.vue diff --git a/packages/extension/src/ui/action/styles/color.less b/packages/extension/src/ui/action/styles/color.less index 2834a5e3d..bec40dce8 100644 --- a/packages/extension/src/ui/action/styles/color.less +++ b/packages/extension/src/ui/action/styles/color.less @@ -1,6 +1,7 @@ @primary: #684cff; @primary01: rgba(5, 192, 165, 0.1); @primaryLight: rgba(104, 76, 255, 0.1); +@primary007: rgba(104, 76, 255, 0.07); @primaryLabel: #202124; @secondaryLabel: #5f6368; diff --git a/packages/extension/src/ui/action/views/network-activity/components/network-activity-action.vue b/packages/extension/src/ui/action/views/network-activity/components/network-activity-action.vue index e8245aa13..6e6e97184 100644 --- a/packages/extension/src/ui/action/views/network-activity/components/network-activity-action.vue +++ b/packages/extension/src/ui/action/views/network-activity/components/network-activity-action.vue @@ -51,7 +51,7 @@ defineEmits<{ .network-activity { &__action { - padding: 0 12px 8px 12px; + padding: 4px 12px 8px 12px; box-sizing: border-box; &-wrap { @@ -59,7 +59,7 @@ defineEmits<{ height: 72px; left: 12px; top: 0px; - background: @actionBg; + background: @primary007; border-radius: 12px; display: flex; justify-content: space-around; diff --git a/packages/extension/src/ui/action/views/network-assets/components/network-assets-header.vue b/packages/extension/src/ui/action/views/network-assets/components/network-assets-header.vue new file mode 100644 index 000000000..2ae2ff1fe --- /dev/null +++ b/packages/extension/src/ui/action/views/network-assets/components/network-assets-header.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/packages/extension/src/ui/action/views/network-assets/components/network-assets-item.vue b/packages/extension/src/ui/action/views/network-assets/components/network-assets-item.vue index a23da895c..6b64c6234 100644 --- a/packages/extension/src/ui/action/views/network-assets/components/network-assets-item.vue +++ b/packages/extension/src/ui/action/views/network-assets/components/network-assets-item.vue @@ -89,8 +89,8 @@ const props = defineProps({ use([SVGRenderer, LineChart, TooltipComponent, GridComponent]); const option = ref({ - width: 32, - height: 32, + width: 48, + height: 20, color: [props.token.priceChangePercentage >= 0 ? '#80FFA5' : '#e01f43'], grid: { show: false, left: 0, top: 0 }, xAxis: [ @@ -180,8 +180,8 @@ const toggleDetail = () => {