mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
fix: Mermaid and Plotly page overflow
Mermaid and Plotly need to have their max-width constrained or they can overflow page width as they set their own fixed max-width in pixels, which can be wider than the page.
One workaround is to set `grid-template-columns` to `100%`. Another is to set a responsive fixed max-width on their parent elements or article-container.
Fix 1c05374
This commit is contained in:
parent
1c053746c5
commit
d70da89199
2 changed files with 2 additions and 2 deletions
|
@ -453,7 +453,7 @@ $(document).ready(function () {
|
|||
isDarkTheme = false;
|
||||
} else {
|
||||
// The visitor does not have a day or night preference, so use the theme's default setting.
|
||||
isDarkTheme = isSiteThemeDark;
|
||||
isDarkTheme = window.wc.isSiteThemeDark;
|
||||
}
|
||||
renderThemeVariation(isDarkTheme);
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ body.no-navbar {
|
|||
min-height: calc(100vh - 70px);
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
grid-template-columns: auto;
|
||||
grid-template-columns: 100%;
|
||||
}
|
||||
@include media-breakpoint-down(md) {
|
||||
.page-wrapper {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue