Skip to content

Commit 89eeac1

Browse files
committed
Dashboard: Fix footer not sticked to bottom on short contracts page (#7951)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## 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 `<div>` to `<div className="flex flex-col grow">` to apply flexbox layout and allow the element to grow. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent c331d18 commit 89eeac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/_layout/contract-page-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function ContractPageLayout(props: {
3535
} = props;
3636

3737
return (
38-
<div>
38+
<div className="flex flex-col grow">
3939
<div className="border-border border-b py-8">
4040
<div className="container flex flex-col gap-4">
4141
<div className="flex flex-col justify-between gap-4 md:flex-row">

0 commit comments

Comments
 (0)