d2 icon indicating copy to clipboard operation
d2 copied to clipboard

icon and label set to same position should not overlap

Open alixander opened this issue 1 year ago • 3 comments

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&

alixander avatar Jun 05 '24 19:06 alixander

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

bo-ku-ra avatar Jun 06 '24 15:06 bo-ku-ra

good point. left-right

alixander avatar Jun 06 '24 16:06 alixander

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
}

bo-ku-ra avatar Jun 06 '24 17:06 bo-ku-ra