Skip to content

Commit 33d7af6

Browse files
committed
Add default top margin when a title is present. Fixes #76
1 parent 2ffe7f1 commit 33d7af6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plotly-graph-card.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ export class PlotlyGraph extends HTMLElement {
274274
yaxis29: merge({}, config.defaults?.yaxes),
275275
yaxis30: merge({}, config.defaults?.yaxes),
276276
},
277+
config.layout?.title ? { margin: { t: 70 } } : {},
277278
config.layout
278279
),
279280
config: {

0 commit comments

Comments
 (0)