8000 GitGraph: `showBranches: false` does not hide branch names and lines · Issue #6535 · mermaid-js/mermaid · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

GitGraph: showBranches: false does not hide branch names and lines #6535

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
ozyx opened this issue Apr 24, 2025 · 1 comment · May be fixed by #6554
Open

GitGraph: showBranches: false does not hide branch names and lines #6535

ozyx opened this issue Apr 24, 2025 · 1 comment · May be fixed by #6554
Labels
Status: Triage Needs to be verified, categorized, etc

Comments

@ozyx
Copy link
ozyx commented Apr 24, 2025

Describe the bug
Setting showBranches to false does not hide branch names in the live editor, nor in the generated .png/.svg

To Reproduce
Link to Live Editor
Steps to reproduce the behavior:

  1. Open the Live Editor
  2. Copy/paste the example from the "hiding branch name and lines" section of the docs into the editor
  3. Notice that branch names and lines are still shown
  4. Export an svg / png
  5. Notice that branch names and lines are shown in the exported image

Expected behavior
The branch names and lines should be hidden in the editor and in the generated images

Screenshots

Image

Desktop (please complete the following information):

  • OS: iOS Sonoma 14.7.5
  • Browser: Chrome
  • Version: 135.0.7049.97 (Official Build) (arm64)

Additional context
N/A

@ozyx ozyx changed the title showBranches: false does not hide branch names and lines GitGraph: showBranches: false does not hide branch names and lines Apr 24, 2025
@sidharthv96 sidharthv96 transferred this issue from mermaid-js/mermaid-live-editor Apr 27, 2025
@github-actions github-actions bot added the Status: Triage Needs to be verified, categorized, etc label Apr 27, 2025
nour0205 pushed a commit to nour0205/mermaid that referenced this issue Apr 30, 2025
@nour0205
Copy link
Contributor
nour0205 commented Apr 30, 2025

Hi @ozyx ,

Thank you for reporting this issue!

I’ve submitted a fix in [PR #6554] which ensures that showBranches: false now properly hides both the branch lines and branch labels in GitGraph diagrams.

Image

If you have a moment, I’d really appreciate it if you could take a look and share any feedback or suggestions. 😊

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0