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

Additional space on grid layout #2143

Closed
chrisirhc opened this issue Oct 8, 2024 · 1 comment
Closed

Additional space on grid layout #2143

chrisirhc opened this issue Oct 8, 2024 · 1 comment

Comments

@chrisirhc
Copy link

chrisirhc commented Oct 8, 2024

Reproduction:

grid-columns: 1

a: "" {
  grid-gap: 0
  grid-columns: 2
  A
  B
}
b: "" {
  grid-gap: 0
  grid-columns: 2
  XYZ
  D
}

https://play.d2lang.com/?script=Si_KTNFNzs8pzc0rtlIw5OJKtFJQUlKo5lJQAEulJxZYKRjAeHCFRlwKCo5cCgpOXLVcSUTriIiM4lJQcOGq5QIEAAD__w%3D%3D&layout=dagre&

Expected two blocks containing two items each. But looks like the first one contains more items.

image
@alixander
Copy link
Collaborator

There's a section on the docs for this =)

https://d2lang.com/tour/grid-diagrams/#why-is-there-extra-padding-in-one-cell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants