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

grid: support custom label/icon positions for grid containers #1710

Closed
gavin-ts opened this issue Nov 7, 2023 · 1 comment · Fixed by #1715
Closed

grid: support custom label/icon positions for grid containers #1710

gavin-ts opened this issue Nov 7, 2023 · 1 comment · Fixed by #1715
Assignees
Labels
feature Something new layout

Comments

@gavin-ts
Copy link
Contributor

gavin-ts commented Nov 7, 2023

currently grid containers always have labels inside top center, but they should be able to be positioned with label.near

For example

grid: {
  label.near: outside-top-left
  grid-rows: 3
  a
  b
  c
}
@gavin-ts gavin-ts added layout feature Something new labels Nov 7, 2023
@cyborg-ts cyborg-ts added this to D2 Nov 7, 2023
@alixander
Copy link
Collaborator

note that if labels are set to outside, then there should be no box for them as part of the grid.

Screen Shot 2023-11-07 at 3 09 42 PM

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

Successfully merging a pull request may close this issue.

2 participants