From d8c2cfa94d10f26a2290af3cf74346f51f980814 Mon Sep 17 00:00:00 2001 From: daniilorain Date: Fri, 15 Jan 2021 17:04:20 +0300 Subject: [PATCH] show border left instead of icon --- src/App.vue | 16 +++++ src/utils/styles.js | 7 +++ src/views/contract/ContentItem.vue | 25 +------- src/views/contract/TransferList.vue | 21 ++----- .../contract/TransfersTab/TransfersCard.vue | 61 ++++++++++++------- 5 files changed, 71 insertions(+), 59 deletions(-) diff --git a/src/App.vue b/src/App.vue index 1b967ca8..b2983237 100644 --- a/src/App.vue +++ b/src/App.vue @@ -118,4 +118,20 @@ input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 30px var(--v-data-base) inset !important; -webkit-text-fill-color: var(--v-text-base) !important; } + +.item-header-applied { + border-left: 3px solid var(--v-success-base); +} + +.item-header-backtracked { + border-left: 3px solid var(--v-warning-base); +} + +.item-header-failed { + border-left: 3px solid var(--v-error-base); +} + +.item-header-mempool { + border-left: 3px solid var(--v-border-base); +} diff --git a/src/utils/styles.js b/src/utils/styles.js index 4d4bcf84..fc9d8308 100644 --- a/src/utils/styles.js +++ b/src/utils/styles.js @@ -30,4 +30,11 @@ export function applyStyles(node) { if (node.items) { applyStyles(node.items); } +} + +export function getContentItemHeaderClass(status) { + if (status === "skipped" || status === "backtracked") return "item-header-backtracked"; + if (status === "pending" || status === "lost") return "item-header-mempool"; + if (status !== "applied") return "item-header-failed"; + return `item-header-${status}`; } \ No newline at end of file diff --git a/src/views/contract/ContentItem.vue b/src/views/contract/ContentItem.vue index 9a62dd57..f016e4fb 100644 --- a/src/views/contract/ContentItem.vue +++ b/src/views/contract/ContentItem.vue @@ -128,7 +128,7 @@ - \ No newline at end of file