-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Open
kibanana/mermaid
#1Labels
Graph: GitStatus: ApprovedIs ready to be worked onIs ready to be worked onType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrect
Description
Description
Hi, trying to tweak my Mermaid gitGraph rendering in Top Bottom fashion.
- Before
%%{ init: { 'gitGraph': { 'mainBranchName': 'ST' }, 'theme': 'base' }}%%
gitGraph:
commit id: "1.00 Disk" tag: "850529"
commit id: "1.00 Mush" tag: "850620"
branch "Mega STe"
checkout "Mega STe"
commit id: "2.05" tag: "901205"
%%{ init: { 'gitGraph': { 'mainBranchName': 'ST' }, 'theme': 'base' }}%%
gitGraph:
commit id: "1.00 Disk" tag: "850529"
commit id: "1.00 Mush" tag: "850620"
branch "Mega STe"
checkout "Mega STe"
commit id: "2.05" tag: "901205"
- After (just added
TB:)
Now tag: are rotated 45° too, and no rotateTagLabel: false available.
%%{ init: { 'gitGraph': { 'mainBranchName': 'ST' }, 'theme': 'base' }}%%
gitGraph TB:
commit id: "1.00 Disk" tag: "850529"
commit id: "1.00 Mush" tag: "850620"
branch "Mega STe"
checkout "Mega STe"
commit id: "2.05" tag: "901205"
%%{ init: { 'gitGraph': { 'mainBranchName': 'ST' }, 'theme': 'base' }}%%
gitGraph TB:
commit id: "1.00 Disk" tag: "850529"
commit id: "1.00 Mush" tag: "850620"
branch "Mega STe"
checkout "Mega STe"
commit id: "2.05" tag: "901205"
While rotateCommitLabel: false works, the rendering of branches gets weird.
- Before
%%{ init: { 'gitGraph': { 'mainBranchName': 'ST' }, 'theme': 'base' }}%%
gitGraph TB:
commit id: "1.00 Disk" tag: "850529"
commit id: "1.00 Mush" tag: "850620"
branch "Mega STe"
checkout "Mega STe"
commit id: "2.05" tag: "901205"
%%{ init: { 'gitGraph': { 'mainBranchName': 'ST' }, 'theme': 'base' }}%%
gitGraph TB:
commit id: "1.00 Disk" tag: "850529"
commit id: "1.00 Mush" tag: "850620"
branch "Mega STe"
checkout "Mega STe"
commit id: "2.05" tag: "901205"
- After (added
'rotateCommitLabel': false)
%%{ init: { 'gitGraph': { 'mainBranchName': 'ST', 'rotateCommitLabel': false }, 'theme': 'base' }}%%
gitGraph TB:
commit id: "1.00 Disk" tag: "850529"
commit id: "1.00 Mush" tag: "850620"
branch "Mega STe"
checkout "Mega STe"
commit id: "2.05" tag: "901205"
%%{ init: { 'gitGraph': { 'mainBranchName': 'ST', 'rotateCommitLabel': false }, 'theme': 'base' }}%%
gitGraph TB:
commit id: "1.00 Disk" tag: "850529"
commit id: "1.00 Mush" tag: "850620"
branch "Mega STe"
checkout "Mega STe"
commit id: "2.05" tag: "901205"
Steps to reproduce
See above
Screenshots
See above
Code Sample
See above
Setup
On 2026/01/19 :
- Mermaid version: mermaid@11.12.2
- Browser and Version: Firefox 147.0.1 on Windows 10 (not going for 11, don't ask)
Suggested Solutions
- Add
rotateTagLabel: falseor don't rotate tags when in TB mode - Don't get branches so close to each other in TB mode +
rotateCommitLabel: true
Additional Context
https://github.com/Kochise/atari-emu/blob/main/ROMS/README.md
Metadata
Metadata
Assignees
Labels
Graph: GitStatus: ApprovedIs ready to be worked onIs ready to be worked onType: Bug / ErrorSomething isn't working or is incorrectSomething isn't working or is incorrect