From af26decc833085af65d9d988108d4a6667680577 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 30 Apr 2024 12:07:36 +0800 Subject: [PATCH] UX Improvement (#20) * Remove ConnectWallet from header * Reposition Send and Recipient above From and To * Update max-width of ChainSelect * Update width of AssetSelect * Update disabled style of BalanceInput * Update styles of Transfer * Update slack_channel --- .github/workflows/deploy-dev.yml | 2 +- .github/workflows/deploy-prd.yml | 2 +- .github/workflows/deploy-stg.yml | 2 +- src/components/asset-select.tsx | 2 +- src/components/balance-input.tsx | 2 +- src/components/chain-select.tsx | 2 +- src/components/header.tsx | 4 -- src/components/transfer.tsx | 64 ++++++++++++++++---------------- 8 files changed, 38 insertions(+), 42 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index e073dab..6156023 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -27,5 +27,5 @@ jobs: script_run: false dist_path: . enable_notify_slack: true - slack_channel: darwinia-apps + slack_channel: public-darwinia-websites-apps slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} diff --git a/.github/workflows/deploy-prd.yml b/.github/workflows/deploy-prd.yml index a69590e..422ee36 100644 --- a/.github/workflows/deploy-prd.yml +++ b/.github/workflows/deploy-prd.yml @@ -29,6 +29,6 @@ jobs: script_run: false dist_path: . enable_notify_slack: true - slack_channel: darwinia-apps + slack_channel: public-darwinia-websites-apps slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} diff --git a/.github/workflows/deploy-stg.yml b/.github/workflows/deploy-stg.yml index bfc0c8e..2ee6ee3 100644 --- a/.github/workflows/deploy-stg.yml +++ b/.github/workflows/deploy-stg.yml @@ -28,5 +28,5 @@ jobs: script_run: false dist_path: . enable_notify_slack: true - slack_channel: darwinia-apps + slack_channel: public-darwinia-websites-apps slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} diff --git a/src/components/asset-select.tsx b/src/components/asset-select.tsx index ecd742e..5bff412 100644 --- a/src/components/asset-select.tsx +++ b/src/components/asset-select.tsx @@ -21,7 +21,7 @@ export default function AssetSelect({ value, options, disabled, onChange = () => } disabled={disabled} sameWidth - labelClassName="flex items-center gap-middle shrink-0 w-28 justify-between bg-component h-full border-radius px-1 hover:opacity-80 transition-[transform,color] disabled:translate-y-0 disabled:opacity-100 disabled:cursor-not-allowed" + labelClassName="flex items-center gap-middle shrink-0 w-32 justify-between bg-component h-full border-radius px-1 hover:opacity-80 transition-[transform,color] disabled:translate-y-0 disabled:opacity-100 disabled:cursor-not-allowed" childClassName="flex flex-col py-small bg-component border-primary border border-radius gap-[1px]" > {options?.length ? ( diff --git a/src/components/balance-input.tsx b/src/components/balance-input.tsx index 4adc5ff..0fcad8f 100644 --- a/src/components/balance-input.tsx +++ b/src/components/balance-input.tsx @@ -107,7 +107,7 @@ export default function BalanceInput({
return (