Skip to content

fix: center TrackTools at bottom across all devices #753

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sreecharan-desu
Copy link

Center TrackTools at Bottom on All Devices

Summary

This PR ensures the TrackTools component is horizontally centered and fixed at the bottom of the viewport across all screen sizes using Tailwind CSS utilities.


Changes Made

  • Replaced incorrect Tailwind classes (itemsc-center, mx-auto w-full)
  • Applied fixed bottom-0 left-1/2 transform -translate-x-1/2 for proper centering
  • Wrapped TrackTools in a flex container for consistent alignment

Before

TrackTools alignment was inconsistent (not centered) on various devices.

Before

After

TrackTools is now perfectly centered and fixed at the bottom of the screen across all viewports.

After


Code Snippet

<div className="fixed bottom-0 left-1/2 transform -translate-x-1/2 flex items-center justify-center">
  <TrackTools allProblems={track.problems} track={track} problemIndex={problemIndex} />
</div>

Why This Matters

This fix improves layout consistency and enhances user experience across mobile and desktop devices.

Thank you for reviewing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant