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

icon and label set to same position should not overlap #1971

Open
alixander opened this issue Jun 5, 2024 · 3 comments
Open

icon and label set to same position should not overlap #1971

alixander opened this issue Jun 5, 2024 · 3 comments

Comments

@alixander
Copy link
Collaborator

It should be side by side

long label: {
  icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
  icon.near: top-left
  label.near: top-left
}

Screenshot 2024-06-05 at 1 08 55 PM

https://play.d2lang.com/?script=XI0xDsIwDEX3nMILYxNRthyAe5jIlEquXdkfFsTdEYKJ8b3hPXVbSPki2ulZiNbh1ukG7Nlb-1BWSAQn4j5Qh29NMsWwsuZhPs_H08TKsdV8LL9ANeHoBN8nlSsKfQ__-lXeAQAA__8%3D&layout=dagre&

@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Jun 6, 2024

(left side and right side) or (upper side and lower side)?

@alixander
Copy link
Collaborator Author

good point. left-right

@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Jun 6, 2024

my understanding correct?

long label: {
  icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
  icon.near: top-left #left
  label.near: top-left #right
}
long label: {
  icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
  label.near: top-left #left
  icon.near: top-left #right
}

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

No branches or pull requests

2 participants