From 47215443b3b7d0e84120922ba5309d431ff7331a Mon Sep 17 00:00:00 2001 From: Ignacio Date: Thu, 7 Mar 2024 17:48:24 +0800 Subject: [PATCH] fix: improve responsive display --- .../staking/components/delegation-details.tsx | 4 +++- src/features/staking/components/divisor.tsx | 4 ++-- .../staking/components/validator-delegation.tsx | 6 +++--- src/features/staking/components/validator-page.tsx | 12 ++++++------ 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/features/staking/components/delegation-details.tsx b/src/features/staking/components/delegation-details.tsx index b18a283..747d73a 100644 --- a/src/features/staking/components/delegation-details.tsx +++ b/src/features/staking/components/delegation-details.tsx @@ -66,13 +66,15 @@ export const DetailsTrigger = ({ const gridStyle = { gap: "16px", gridTemplateColumns: "60px 1.5fr repeat(4, 1fr)", + minWidth: 800, + overflow: "auto", }; const rowStyle = "grid w-full items-center justify-between gap-2 p-2 mb-[24px] last:mb-[0px] bg-black rounded-[8px]"; const wrapperStyle = - "w-full overflow-hidden rounded-[24px] bg-bg-600 pb-4 text-typo-100 px-[16px]"; + "w-full overflow-auto rounded-[24px] bg-bg-600 pb-4 text-typo-100 px-[16px]"; const Menu = () => ( ( -
+export const DivisorHorizontal = ({ className }: { className?: string }) => ( +
); export const DivisorVertical = () => ( diff --git a/src/features/staking/components/validator-delegation.tsx b/src/features/staking/components/validator-delegation.tsx index 2f54424..95b4208 100644 --- a/src/features/staking/components/validator-delegation.tsx +++ b/src/features/staking/components/validator-delegation.tsx @@ -75,7 +75,7 @@ export default function ValidatorDelegation() { const canShowDetail = getCanShowDetails(staking.state); const content = !isConnected ? ( -
+
Please log in to view
) : ( -
+
Claimable Rewards
@@ -180,7 +180,7 @@ export default function ValidatorDelegation() { /> )}
- {content} +
{content}
{canShowDetail && isShowingDetails && } ); diff --git a/src/features/staking/components/validator-page.tsx b/src/features/staking/components/validator-page.tsx index 692c37a..c308396 100644 --- a/src/features/staking/components/validator-page.tsx +++ b/src/features/staking/components/validator-page.tsx @@ -92,14 +92,14 @@ export default function ValidatorPage() { {validatorDetails.description.moniker}
-
+
Validator logo )}
- -
+ +
Total Stake (XION)
@@ -184,8 +184,8 @@ export default function ValidatorPage() { {formatXionToUSD(myDelegationToValidator)}
- -
+ +
XION Address