From ea5180c2e41a7dc916947bd5d6c2082199d0604a Mon Sep 17 00:00:00 2001 From: bigbo1225 Date: Fri, 26 Oct 2018 21:37:49 +0800 Subject: [PATCH] refactor: update css for transaction --- src/popup/home/components/tx-info.vue | 27 ++++++++++++++-------- src/popup/home/main.vue | 36 ++++++++++++----------------- src/popup/login/components/form-recover.vue | 2 +- 3 files changed, 33 insertions(+), 32 deletions(-) diff --git a/src/popup/home/components/tx-info.vue b/src/popup/home/components/tx-info.vue index e45b114..99c0505 100644 --- a/src/popup/home/components/tx-info.vue +++ b/src/popup/home/components/tx-info.vue @@ -30,21 +30,28 @@ } .title { + font-size: 18px; + font-weight: inherit; + color: #cacaca; text-align: center; - font-size: 16px; padding: 5px 0; } .transaction { padding: 0 40px; - font-size: 14px; + font-size: 15px; word-break: break-all; - /* overflow-y: scroll; */ height: 415px; + margin-top: 20px; } .transaction .time { margin: 10px 0; + font-size: 15px; +} +.transaction .label { + font-size: 12px; } .transaction .info { + font-size: 18px; display: inline-flex; } .transaction .info section { @@ -83,31 +90,31 @@

{{transaction.timestamp | moment}}

-

矿工费用

-

0.2BTM

+

矿工费用

+

0.02BTM

-

区块高度

+

区块高度

{{transaction.block_height}}

-

交易大小

+

交易大小

{{transaction.size}}

-

交易ID

+

交易ID

{{transaction.hash}}

-

发款地址{{transaction.inputs.length > 1 ? index+1 : ''}}

+

发款地址{{transaction.inputs.length > 1 ? index+1 : ''}}

{{input.address}}(自己的地址)

-

收款地址{{transaction.outputs.length > 1 ? index+1 : ''}}

+

收款地址{{transaction.outputs.length > 1 ? index+1 : ''}}

{{output.address}}(自己的地址)

diff --git a/src/popup/home/main.vue b/src/popup/home/main.vue index 8323994..0682678 100644 --- a/src/popup/home/main.vue +++ b/src/popup/home/main.vue @@ -79,15 +79,11 @@ } .btn-transfer { width: 200px; - /* font-size: 20px; */ - /* line-height: 22px; */ - /* height: 40px; */ } .transactions { font-size: 15px; - /* line-height: 40px; */ - /* display: contents; */ + height: 275px; } .transactions h3 { font-size: 18px; @@ -97,7 +93,7 @@ padding: 5px 0; } .transactions .list { - padding: 0 10px; + padding: 0 20px; } .list-item { display: block; @@ -150,19 +146,17 @@

交易记录

-
- -
    -
  • -
    {{transcation.direct}} {{transcation.val}} BTM
    -
    -
    {{transcation.timestamp | moment}}
    -
    {{transcation.address}}
    -
    -
  • -
-
-
+ +
    +
  • +
    {{transcation.direct}} {{transcation.val}} BTM
    +
    +
    {{transcation.timestamp | moment}}
    +
    {{transcation.address}}
    +
    +
  • +
+

在此网络中尚无您的账户信息

@@ -298,13 +292,13 @@ export default { this.clipboard.on("success", e => { this.$dialog.show({ header: this.$t("dialog.header"), - body: this.$t("dialog.copy.success"), + body: this.$t("dialog.copy.success") }); }); this.clipboard.on("error", e => { this.$dialog.show({ header: this.$t("dialog.header"), - body: this.$t("dialog.copy.fail"), + body: this.$t("dialog.copy.fail") }); }); }, diff --git a/src/popup/login/components/form-recover.vue b/src/popup/login/components/form-recover.vue index 2b242c9..c69062c 100644 --- a/src/popup/login/components/form-recover.vue +++ b/src/popup/login/components/form-recover.vue @@ -11,7 +11,7 @@
-
+
-- 2.11.0