remove padding from tooltip/link standalone

This commit is contained in:
Alexander Wang 2024-10-31 05:49:50 -06:00
parent 0570f5cd7e
commit 00e9f5dd2d
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927

View file

@ -1544,11 +1544,8 @@ func (g *Graph) SetDimensions(mtexts []*d2target.MText, ruler *textmeasure.Ruler
switch shapeType {
case shape.TABLE_TYPE, shape.CLASS_TYPE, shape.CODE_TYPE:
default:
if obj.Link != nil {
paddingX += 32
}
if obj.Tooltip != nil {
paddingX += 32
if obj.Link != nil && obj.Tooltip != nil {
paddingX += 64
}
}
}