Skip to content

Commit

Permalink
Merge pull request #1412 from gavin-ts/fix-grid-label-size
Browse files Browse the repository at this point in the history
fix grid label font size in tala
  • Loading branch information
gavin-ts authored Jun 15, 2023
2 parents c4ba207 + b1c3f35 commit b843635
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ci/release/changelogs/next.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
#### Bugfixes ⛑️

- Fixes edge case in compiler using dots in quotes [#1401](https://github.com/terrastruct/d2/pull/1401)
- Fixes grid label font size for TALA [#1412](https://github.com/terrastruct/d2/pull/1412)
3 changes: 2 additions & 1 deletion d2graph/d2graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ func (obj *Object) Text() *d2target.MText {
}

if obj.OuterSequenceDiagram() == nil {
if obj.IsContainer() && obj.Shape.Value != "text" {
// Note: during grid layout when children are temporarily removed `IsContainer` is false
if (obj.IsContainer() || obj.IsGridDiagram()) && obj.Shape.Value != "text" {
fontSize = obj.Level().LabelSize()
}
} else {
Expand Down

0 comments on commit b843635

Please sign in to comment.