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

Suggestion: Fix gitgraph overflow #104

Open
Berk-Tosun opened this issue Jan 25, 2023 · 0 comments
Open

Suggestion: Fix gitgraph overflow #104

Berk-Tosun opened this issue Jan 25, 2023 · 0 comments

Comments

@Berk-Tosun
Copy link

Using gitgraphs in furo theme causes the figure to overflow and the sides cannot be viewed properly.

For me it can be fixed with the following configuration, "themeCSS" is where the magic happens:

%%{init: {
        'gitGraph': {
            'showBranches': true,
            'showCommitLabel': true,
            'mainBranchName': 'Ignore'
        },
        'themeVariables': {
            'commitLabelFontSize': '16px'
        },
        "themeCSS": ".mermaid svg {width: 100%;}"
}}%%

Perhaps someone can create a PR out of it, I will have a look at the source if I get the time.

Thanks for the nice package!

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