Skip to content

Commit f5b8230

Browse files
committed
[Dashboard] Fix minor layer issues (#4928)
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) <!-- start pr-codex --> --- ## 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}` <!-- end pr-codex -->
1 parent 7c10343 commit f5b8230

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/dashboard/src/contract-ui/tabs/nfts/components/supply-cards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const SupplyCards: React.FC<SupplyCardsProps> = ({ contract }) => {
2323
).toString();
2424

2525
return (
26-
<div className="flex flex-row gap-3 md:gap-6">
26+
<div className="flex flex-col gap-3 md:flex-row md:gap-6">
2727
<Card as={Stat}>
2828
<StatLabel mb={{ base: 1, md: 0 }}>Total Supply</StatLabel>
2929
<Skeleton isLoaded={totalSupplyQuery.isSuccess}>

apps/dashboard/src/contract-ui/tabs/nfts/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ export const ContractNFTPage: React.FC<NftOverviewPageProps> = ({
5353

5454
return (
5555
<div className="flex flex-col gap-6">
56-
<div className="flex flex-row items-center justify-between">
57-
<h2 className="font-bold text-xl">Contract NFTs</h2>
58-
<div className="flex flex-col gap-2 md:flex-row">
56+
<div className="flex flex-col gap-3 xl:flex-row xl:items-center xl:justify-between">
57+
<h2 className="font-semibold text-2xl tracking-tight">Contract NFTs</h2>
58+
<div className="grid grid-cols-2 gap-2 md:flex">
5959
{isRevealable && <NFTRevealButton contract={contract} />}
6060
{isERC721ClaimToSupported && (
6161
/**

0 commit comments

Comments
 (0)