From 89eeac1f8a20596ab93b92cf2bbcc76175ceec09 Mon Sep 17 00:00:00 2001 From: MananTank Date: Sat, 30 Aug 2025 04:03:07 +0000 Subject: [PATCH] Dashboard: Fix footer not sticked to bottom on short contracts page (#7951) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on enhancing the layout of the `contract-page-layout.tsx` component by adding a CSS class to the main `div` element for improved styling and structure. ### Detailed summary - Changed the main `div` element from `
` to `
` to apply flexbox layout and allow the element to grow. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit * **Style** * Updated contract page layout to use a flexible, column-based structure for more consistent spacing. * Improves use of available screen space so content expands naturally within the dashboard. * Enhances responsiveness across viewports, reducing awkward white space and unnecessary scrolling. * Provides more stable alignment between sidebar and main content on contract detail pages. --- .../[contractAddress]/_layout/contract-page-layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/_layout/contract-page-layout.tsx b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/_layout/contract-page-layout.tsx index 1c3155a8c8b..72f800a4767 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/_layout/contract-page-layout.tsx +++ b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/_layout/contract-page-layout.tsx @@ -35,7 +35,7 @@ export function ContractPageLayout(props: { } = props; return ( -
+