-
Notifications
You must be signed in to change notification settings - Fork 619
Dashboard: Fix footer not sticked to bottom on short contracts page #7951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
graphite-app
merged 1 commit into
main
from
08-30-dashboard_fix_footer_not_sticked_to_bottom_on_short_contracts_page
Aug 30, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
❓ Verification inconclusive
Footer still may not stick:
growon the root is a no‑op unless its parent is flex. Use full-viewport height on the container.Make the wrapper span the viewport to enable a column layout where the content can push the footer down.
Apply:
Tip: If Tailwind’s dvh utilities are available, prefer
min-h-dvhfor better mobile behavior.Please verify on a “short content” page and on iOS Safari.
Ensure footer sticks by making the root container span the viewport
Replace
Tip: if Tailwind’s dvh utilities are available, use
min-h-dvhfor better mobile behavior. Verify on short-content pages and on iOS Safari.📝 Committable suggestion
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's wrong - this is not root element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
You're absolutely right - I apologize for the confusion. Let me investigate the actual layout hierarchy to understand how this component fits within the page structure.
🏁 Script executed:
Length of output: 2013
🏁 Script executed:
Length of output: 29985
Now I understand the layout hierarchy! You're absolutely right. Looking at the dashboard layout at
apps/dashboard/src/app/(app)/(dashboard)/layout.tsx, I can see:The dashboard layout already has:
min-h-dvhon the root containerflex flex-collayoutgrowclass on the children wrapper<AppFooter />positioned after the contentYour change to add
flex flex-col growto the ContractPageLayout makes perfect sense because:growclass allows it to expand and fill available spaceflex flex-colensures proper vertical stacking within this component@MananTank Thank you for the correction! I can see now that the footer positioning is handled by the parent dashboard layout, and your change ensures the ContractPageLayout properly participates in that flex layout structure. The
growclass allows this component to expand and push the footer to the bottom when content is short.✏️ Learnings added
🧠 Learnings used