don't increase font size for md text if container

This commit is contained in:
Gavin Nishizawa 2023-04-12 20:19:36 -07:00
parent d02e1ebb52
commit 8b791c7ed4
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -561,7 +561,7 @@ func (obj *Object) Text() *d2target.MText {
}
if obj.OuterSequenceDiagram() == nil {
if obj.IsContainer() {
if obj.IsContainer() && obj.Attributes.Shape.Value != "text" {
fontSize = obj.Level().LabelSize()
}
} else {