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

💄Adjust the font type in ToC to resolve some display issues #2780

Open
3 tasks
ZenoWang1999 opened this issue Jan 22, 2025 · 0 comments
Open
3 tasks

💄Adjust the font type in ToC to resolve some display issues #2780

ZenoWang1999 opened this issue Jan 22, 2025 · 0 comments

Comments

@ZenoWang1999
Copy link
Contributor

ZenoWang1999 commented Jan 22, 2025

🩸 Pain

See https://tina.io/docs/introduction/faq
When highlighting the text in the Table of Contents on Docs page, the font-weight of the text changes, which can alter the text width and sometimes break words onto another line.

Image
Figure1: See"Enabling co-author on Git commits", text is not highlighted

Image
Figure 2: The text widens after being highlighted, causing it to shift to the next line.

💡 Suggested Solution

Using monospaced font to display this part of the text, but ensure the font style is not too obtrusive. Consult the UI designer for advice.

💼 Tasks

  • Look for fonts that support Monospace (preferably those that can be displayed on different platforms and devices).
  • Consult the UI designer for their opinion.
  • Consider alternative methods that may work better than using a Monospace font.

✅ Acceptance Criteria

The text does not cause word wrapping after being highlighted (with increased font-weight)

@ZenoWang1999 ZenoWang1999 changed the title 💄 💄Adjust the ToC font to resolve some display issues on Sidebar Jan 22, 2025
@ZenoWang1999 ZenoWang1999 changed the title 💄Adjust the ToC font to resolve some display issues on Sidebar 💄Adjust the font type in ToC to resolve some display issues Jan 22, 2025
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

No branches or pull requests

1 participant