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

gantt fontSize does not apply to tick text #5710

Open
l0b0 opened this issue Aug 12, 2024 · 0 comments
Open

gantt fontSize does not apply to tick text #5710

l0b0 opened this issue Aug 12, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@l0b0
Copy link

l0b0 commented Aug 12, 2024

Description

Setting a big font size for Gantt charts (in this case to fit with non-Mermaid content) breaks completely:

  • The bars don't scale to fit the text
  • The font size is not applied to tick text

Steps to reproduce

  1. Go to

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version: Live view
  • Browser and Version: N/A

Suggested Solutions

  • Apply gantt fontSize setting to tick text
  • Use dynamic scaling of bars so they fit the text

Additional Context

Workaround: Fiddle with barHeight, fontSize, and CSS .tick text font-size to get something workable.

@l0b0 l0b0 added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant