From cf3268c890772c69e604a6aab1ad0c1126daaaf7 Mon Sep 17 00:00:00 2001 From: yanguoyu <841185308@qq.com> Date: Wed, 9 Aug 2023 11:29:23 +0800 Subject: [PATCH 1/7] fix: Fix styles. 1. History cursor and search width 2. Receive dismiss table hover tr and add pointer. --- .../src/components/History/history.module.scss | 11 +++++++++-- .../neuron-ui/src/components/History/index.tsx | 3 ++- .../src/components/Receive/multiAddressReceive.tsx | 1 + .../src/components/Receive/receive.module.scss | 14 +++----------- packages/neuron-ui/src/widgets/Table/index.tsx | 3 +++ .../neuron-ui/src/widgets/Table/table.module.scss | 6 ++++-- 6 files changed, 22 insertions(+), 16 deletions(-) diff --git a/packages/neuron-ui/src/components/History/history.module.scss b/packages/neuron-ui/src/components/History/history.module.scss index 0189ea9576..b09f50bc6d 100644 --- a/packages/neuron-ui/src/components/History/history.module.scss +++ b/packages/neuron-ui/src/components/History/history.module.scss @@ -21,7 +21,7 @@ body { .tableHeaderInput { margin: unset; - width: 100%; + flex: 1 1 auto; & > div { min-height: 48px; @@ -46,6 +46,8 @@ body { font-size: 14px; border-radius: 32px; height: 48px; + padding: 0 16px; + min-width: auto; &:hover { color: var(--primary-color); @@ -57,7 +59,7 @@ body { } .exportIcon { - padding: 0 10px; + padding-right: 8px; path { fill: var(--main-text-color); } @@ -66,6 +68,8 @@ body { } .extendWrapper { + cursor: initial; + .extendBox { background-color: var(--table-head-background-color); margin: 0 8px 16px 0; @@ -94,6 +98,7 @@ body { .descText { padding-bottom: 16px; word-break: break-all; + cursor: pointer; &:hover { color: var(--primary-color); } @@ -102,9 +107,11 @@ body { .txHash { display: flex; align-items: center; + font-family: 'JetBrains Mono'; & > svg { margin-left: 8px; + cursor: pointer; } } } diff --git a/packages/neuron-ui/src/components/History/index.tsx b/packages/neuron-ui/src/components/History/index.tsx index a32fcd1058..55aa04deea 100644 --- a/packages/neuron-ui/src/components/History/index.tsx +++ b/packages/neuron-ui/src/components/History/index.tsx @@ -40,6 +40,7 @@ import styles from './history.module.scss' const History = () => { const { + app: { pageNotice }, wallet: { id, name: walletName }, chain: { networkID, @@ -234,6 +235,7 @@ const History = () => { e.preventDefault() }} head={t('history.title')} + notice={pageNotice} >