From e63ed2f8e71758e9fcf33519e2c7a09b47b6037b Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 25 Mar 2024 14:49:16 +0800 Subject: [PATCH] Improve information display (#679) * refactor: allways display information * refactor: update information text color * refactor: remove No-relayer prompt * refactor: remove information title * refactor: improve transfer modal ui * refactor: transfer limit alert * refactor: improve scrollbar * refactor: improve scrollbar of WithdrawableLiquiditiesSelect --- src/app/globals.css | 8 +++----- src/components/chain-select.tsx | 2 +- src/components/modals/transfer-modal-v2.tsx | 6 +++--- src/components/record-detail.tsx | 2 +- src/components/transfer-amount-input.tsx | 11 +++++++++-- src/components/transfer-amount-section.tsx | 3 +++ src/components/transfer-chain-select.tsx | 2 +- .../transfer-information-section.tsx | 19 +++++++------------ src/components/transfer-information.tsx | 18 +++--------------- src/components/transfer-v2.tsx | 19 +++++++++---------- src/components/user.tsx | 2 +- .../withdrawable-liquidities-select.tsx | 6 +++++- 12 files changed, 46 insertions(+), 52 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 3ddeb3348..f28d9c613 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -26,18 +26,16 @@ body { rgb(var(--background-start-rgb)); } */ -@layer base { - ::-webkit-scrollbar { +@layer components { + .app-scrollbar::-webkit-scrollbar { width: 6px; } - ::-webkit-scrollbar-thumb { + .app-scrollbar::-webkit-scrollbar-thumb { border-radius: 10px; box-shadow: inset 0 0 5x rgba(0, 0, 0, 0.2); background: hsla(0, 0%, 100%, 0.4); } -} -@layer components { /* Layout */ .app-header { @apply h-[64px]; diff --git a/src/components/chain-select.tsx b/src/components/chain-select.tsx index 6737670c5..a89a209a6 100644 --- a/src/components/chain-select.tsx +++ b/src/components/chain-select.tsx @@ -26,7 +26,7 @@ export default function ChainSelect({ return (