From f5b82308ee8acb610e4b1a0a46385fd9d5785562 Mon Sep 17 00:00:00 2001 From: kien-ngo Date: Wed, 9 Oct 2024 22:27:50 +0000 Subject: [PATCH] [Dashboard] Fix minor layer issues (#4928) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before: ![image](https://github.com/user-attachments/assets/5429077d-24ee-4641-8025-137a67ab187d) After: ![image](https://github.com/user-attachments/assets/72784965-1708-48a9-b614-970697ad40b9) --- ## PR-Codex overview This PR focuses on updating the layout and styling of components in the `supply-cards.tsx` and `page.tsx` files to enhance the visual structure and responsiveness of the dashboard interface. ### Detailed summary - In `supply-cards.tsx`, changed the layout from a row (`flex-row`) to a column (`flex-col`) for better alignment. - In `page.tsx`, modified the layout to use `flex-col` with additional styling adjustments, including: - Updated heading class from `font-bold text-xl` to `font-semibold text-2xl tracking-tight`. - Adjusted the container to use a grid layout for better responsiveness. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .../src/contract-ui/tabs/nfts/components/supply-cards.tsx | 2 +- apps/dashboard/src/contract-ui/tabs/nfts/page.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/dashboard/src/contract-ui/tabs/nfts/components/supply-cards.tsx b/apps/dashboard/src/contract-ui/tabs/nfts/components/supply-cards.tsx index 74fcf749cbe..8c69caa4171 100644 --- a/apps/dashboard/src/contract-ui/tabs/nfts/components/supply-cards.tsx +++ b/apps/dashboard/src/contract-ui/tabs/nfts/components/supply-cards.tsx @@ -23,7 +23,7 @@ export const SupplyCards: React.FC = ({ contract }) => { ).toString(); return ( -
+
Total Supply diff --git a/apps/dashboard/src/contract-ui/tabs/nfts/page.tsx b/apps/dashboard/src/contract-ui/tabs/nfts/page.tsx index fadfe7cb8eb..7eef52679f1 100644 --- a/apps/dashboard/src/contract-ui/tabs/nfts/page.tsx +++ b/apps/dashboard/src/contract-ui/tabs/nfts/page.tsx @@ -53,9 +53,9 @@ export const ContractNFTPage: React.FC = ({ return (
-
-

Contract NFTs

-
+
+

Contract NFTs

+
{isRevealable && } {isERC721ClaimToSupported && ( /**