Skip to content
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

♻️ Refactor ToC Overflow Button on Mobile #2706

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

joshbermanssw
Copy link
Contributor

As per 🐛 Docs – Weird Conditional Behaviour on Mobile the ToCOverflow button was acting strangely on mobile. The problem was if the ToC was emtpy the overflow was also empty and this looked bad (figure 1).

Changes

  • added a conditional statement which hides the ToCOverflow button if the length of the ToC === 0

Screenshot 2025-01-08 at 12 46 45 pm

Figure: Problematic Empty Overflow

Screenshot 2025-01-08 at 12 45 29 pm

Figure: Updated UI - no ToC button if it is empty

@joshbermanssw joshbermanssw requested a review from a team as a code owner January 8, 2025 01:47
Copy link

vercel bot commented Jan 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tina-io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2025 1:52am

@joshbermanssw joshbermanssw merged commit de0fe8e into main Jan 8, 2025
4 checks passed
@joshbermanssw joshbermanssw deleted the fix-conditional-mobile-docs branch January 8, 2025 03:10
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.

2 participants