mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 16:15:12 +00: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:
1 parent
1c053746c5
commit
d70da89199
2 files changed
+2
-2
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user