fix: footer overlap with left navigation panel on specific pages#554
Open
NeerajPise wants to merge 5 commits intotenstorrent:devfrom
Open
fix: footer overlap with left navigation panel on specific pages#554NeerajPise wants to merge 5 commits intotenstorrent:devfrom
NeerajPise wants to merge 5 commits intotenstorrent:devfrom
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
The footer was overlapping with the left navigation panel on pages like /image-generation and /chat, causing visual conflicts and poor UX. The footer used a fixed left-0 position that spanned the full viewport width, ignoring the 64px wide left NavBar. Additionally, the system resource usage section was overflowing on the right side due to excessive spacing on mobile view.
Solution
Implemented dynamic footer positioning based on the current route and screen size using a getFooterLeftClass() function that:
- Mobile: Full-width footer (left-0)
- Desktop: Offset footer to account for 64px NavBar (left-0 md:left-16)
- All screen sizes: Offset footer by 64px (left-16)
- All screen sizes: Full-width footer (left-0)
Reduced right section spacing from space-x-6 to space-x-2 to prevent system resource text overflow.
Fixes #543
Tests