Skip to content

Commit d24a510

Browse files
authored
Fix plotly menubar
See plotly/plotly.js#5828
1 parent 818314a commit d24a510

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/haddock/libs/libplots.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,9 @@ def _css_styles_for_report(offline: bool) -> str:
983983
tr:nth-child(even) {
984984
background-color: #f2f2f2
985985
}
986+
.js-plotly-plot .plotly .modebar svg {
987+
display: inline;
988+
}
986989
"""
987990
css_link = "https://cdn.jsdelivr.net/npm/@i-vresse/haddock3-ui@~0.3.0/dist/index.css"
988991
if offline:
@@ -1505,4 +1508,4 @@ def make_traceback_plot(tr_subset, plot_filename):
15051508
figure_height=1200,
15061509
figure_width=2000
15071510
)
1508-
return plot_filename
1511+
return plot_filename

0 commit comments

Comments
 (0)