fix(layout): lock scrollWidth against plotly rtl tester svg overflow
This commit is contained in:
parent
7bff5a0432
commit
5211052fea
2 changed files with 60 additions and 0 deletions
|
|
@ -97,6 +97,19 @@
|
|||
font-weight: 700;
|
||||
background-color: #FFF1F2;
|
||||
}
|
||||
|
||||
/* Fix Plotly RTL SVG Tester overflow */
|
||||
#js-plotly-tester {
|
||||
left: 0 !important;
|
||||
top: 0 !important;
|
||||
position: fixed !important;
|
||||
opacity: 0 !important;
|
||||
pointer-events: none !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
z-index: -9999 !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-slate-50 text-slate-900 min-h-screen flex flex-col antialiased">
|
||||
|
|
@ -3578,6 +3591,23 @@
|
|||
});
|
||||
|
||||
|
||||
|
||||
// Prevent Plotly RTL tester svg from expanding scrollWidth
|
||||
const plotlyFixObserver = new MutationObserver(() => {
|
||||
const el = document.getElementById("js-plotly-tester");
|
||||
if (el) {
|
||||
el.style.setProperty("left", "0", "important");
|
||||
el.style.setProperty("top", "0", "important");
|
||||
el.style.setProperty("position", "fixed", "important");
|
||||
el.style.setProperty("opacity", "0", "important");
|
||||
el.style.setProperty("pointer-events", "none", "important");
|
||||
el.style.setProperty("width", "1px", "important");
|
||||
el.style.setProperty("height", "1px", "important");
|
||||
el.style.setProperty("z-index", "-9999", "important");
|
||||
}
|
||||
});
|
||||
plotlyFixObserver.observe(document.documentElement, { childList: true, subtree: true });
|
||||
|
||||
// --- DKMall Meetings v2 JS Logic ---
|
||||
let talkTimeChartInstance = null;
|
||||
|
||||
|
|
|
|||
30
tmall.html
30
tmall.html
|
|
@ -97,6 +97,19 @@
|
|||
font-weight: 700;
|
||||
background-color: #FFF1F2;
|
||||
}
|
||||
|
||||
/* Fix Plotly RTL SVG Tester overflow */
|
||||
#js-plotly-tester {
|
||||
left: 0 !important;
|
||||
top: 0 !important;
|
||||
position: fixed !important;
|
||||
opacity: 0 !important;
|
||||
pointer-events: none !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
z-index: -9999 !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-slate-50 text-slate-900 min-h-screen flex flex-col antialiased">
|
||||
|
|
@ -3578,6 +3591,23 @@
|
|||
});
|
||||
|
||||
|
||||
|
||||
// Prevent Plotly RTL tester svg from expanding scrollWidth
|
||||
const plotlyFixObserver = new MutationObserver(() => {
|
||||
const el = document.getElementById("js-plotly-tester");
|
||||
if (el) {
|
||||
el.style.setProperty("left", "0", "important");
|
||||
el.style.setProperty("top", "0", "important");
|
||||
el.style.setProperty("position", "fixed", "important");
|
||||
el.style.setProperty("opacity", "0", "important");
|
||||
el.style.setProperty("pointer-events", "none", "important");
|
||||
el.style.setProperty("width", "1px", "important");
|
||||
el.style.setProperty("height", "1px", "important");
|
||||
el.style.setProperty("z-index", "-9999", "important");
|
||||
}
|
||||
});
|
||||
plotlyFixObserver.observe(document.documentElement, { childList: true, subtree: true });
|
||||
|
||||
// --- DKMall Meetings v2 JS Logic ---
|
||||
let talkTimeChartInstance = null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue