Skip to content
This repository was archived by the owner on Jul 13, 2024. It is now read-only.

Conversation

@nicoespeon
Copy link
Owner

Closes #303

Add responsive boolean to @gitgraph/js option. Setting it to true will make the graph fill the available space of its container.

Usage as following:

const gitgraph = createGitgraph(graphContainer, {
  generateCommitHash: createFixedHashGenerator(),
  responsive: true,
});

responsive-gitgraph

Note: I also fixed #321 passing by

@nicoespeon nicoespeon merged commit 53e7c87 into master Mar 6, 2021
@nicoespeon nicoespeon deleted the js/responsive-graph branch March 6, 2021 14:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use hash as key instead hashAbbrev in @gitgraph/react Make Graph Scale Responsive

2 participants