d2 icon indicating copy to clipboard operation
d2 copied to clipboard

[v0.6.5]minimum height is not character height

Open bo-ku-ra opened this issue 10 months ago • 2 comments

v0.6.3 no problem. occur in v0.6.4 and v0.6.5

https://play.d2lang.com/?script=ZMi9CsIwFIbh_VzFS0dBsOt3Nyc_JAW1xUYohNy7k1PWJ-yXWBa6Qfls6R735_f1PsX6l-KHeBi4cPpZ_cii5asNgyDChFHECZNIE95Er3krtYl12LBfAAAA__8%3D&

bo-ku-ra avatar Apr 18 '24 22:04 bo-ku-ra

Yes this is by design, otherwise you would never be able to do this: https://play.d2lang.com/?script=qrBSyMnPS1fISUxKzVFIyy9SKEgtKs7P46rQK85ILEi1QvDLM1NKMqwUzAy4AAEAAP__&

alixander avatar Apr 18 '24 23:04 alixander

hm. i want a specification to fit the height of text.

box: "" {
  grid-columns: 1
  grid-gap: 0
  a: "a" {shape: text}
  b: "b\nb" {shape: text}
  c: "c\nc\nc" {shape: text}
  d: "d\nd\nd\nd" {shape: text}
  *: {height: fitting} 
}

bo-ku-ra avatar Apr 19 '24 00:04 bo-ku-ra