From 8e9d13c95c82bfa912ca27dd3917a224ef040a0d Mon Sep 17 00:00:00 2001 From: MananTank Date: Wed, 25 Sep 2024 15:40:12 +0000 Subject: [PATCH] Add position relative on all Shadcn/Chakra AspectRatio component replacement divs (#4801) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem solved Short description of the bug fixed or feature added --- ## PR-Codex overview This PR focuses on updating various components to add the `relative` class to `div` elements that define aspect ratios, enhancing layout control and positioning. ### Detailed summary - Added `relative` class to `div` elements in: - `GameShowcase.tsx` for aspect ratios `16/9` - `GuideCard.tsx` for aspect ratios `2400/1260` - `airdrop-upload-erc20.tsx` for aspect ratios `21/9` - `chain-header.tsx` for conditional aspect ratios - `airdrop-upload.tsx` for aspect ratios `21/9` - `snapshot-upload.tsx` for aspect ratios `21/9` - `upload-step.tsx` for aspect ratio `square` - `NFTCards.tsx` for aspect ratio `square` - `MarketplaceDetails.tsx` for aspect ratio `square` - `dropzone.tsx` for aspect ratio adjustments - `WithoutThirdwebSection.tsx` for aspect ratios `16/10` - `logo/index.tsx` for aspect ratio `516/321` - Updated `Logo` component for aspect ratio `1377/267` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .../[chain_id]/(chainPage)/components/server/chain-header.tsx | 2 +- .../src/components/hackathon/gaming/GameShowcase.tsx | 2 +- .../components/homepage/sections/WithoutThirdwebSection.tsx | 4 ++-- apps/dashboard/src/components/ipfs-upload/dropzone.tsx | 4 ++-- apps/dashboard/src/components/logo/index.tsx | 4 ++-- .../src/components/product-pages/common/GuideCard.tsx | 2 +- .../tabs/claim-conditions/components/snapshot-upload.tsx | 2 +- .../src/contract-ui/tabs/nfts/components/airdrop-upload.tsx | 2 +- .../tabs/overview/components/MarketplaceDetails.tsx | 2 +- .../src/contract-ui/tabs/overview/components/NFTCards.tsx | 2 +- .../tabs/tokens/components/airdrop-upload-erc20.tsx | 2 +- apps/dashboard/src/core-ui/batch-upload/upload-step.tsx | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/(chainPage)/components/server/chain-header.tsx b/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/(chainPage)/components/server/chain-header.tsx index 6263b115aed..f057047b77c 100644 --- a/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/(chainPage)/components/server/chain-header.tsx +++ b/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/(chainPage)/components/server/chain-header.tsx @@ -21,7 +21,7 @@ export function ChainHeader(props: ChainHeaderProps) { {!props.headerImageUrl &&
}
diff --git a/apps/dashboard/src/components/hackathon/gaming/GameShowcase.tsx b/apps/dashboard/src/components/hackathon/gaming/GameShowcase.tsx index 43b36bd8f09..ea20b667d47 100644 --- a/apps/dashboard/src/components/hackathon/gaming/GameShowcase.tsx +++ b/apps/dashboard/src/components/hackathon/gaming/GameShowcase.tsx @@ -86,7 +86,7 @@ export const GameShowcase = () => { > -
+
{ > -
+
{
-
+
{
= ({ files, updateFiles }) => { alignItems="center" > -
+
= ({ extraClass, }) => { return ( -
+
thirdweb @@ -100,7 +100,7 @@ export const Logo: React.FC = ({ {(hideWordmark && !forceShowWordMark) ?? (
= ({ _hover={{ opacity: 0.86 }} overflow="hidden" > -
+
= ({ -
+
= ({ -
+
= ({ _hover={{ opacity: 0.75, textDecoration: "none" }} > -
+
= ({ _hover={{ opacity: 0.75, textDecoration: "none" }} > -
+
= ({ ) : (
-
+
= ({ -
+