fix(layout): lock scrollWidth against plotly rtl tester svg overflow on dashboard
This commit is contained in:
parent
5211052fea
commit
b6ca111c33
2 changed files with 68 additions and 0 deletions
|
|
@ -46,6 +46,10 @@
|
|||
</script>
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
overflow-x: hidden;
|
||||
max-width: 100%;
|
||||
}
|
||||
body {
|
||||
font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
|
||||
background-color: #F8FAFC;
|
||||
|
|
@ -93,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">
|
||||
|
|
@ -3574,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;
|
||||
|
||||
|
|
|
|||
|
|
@ -46,6 +46,10 @@
|
|||
</script>
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
overflow-x: hidden;
|
||||
max-width: 100%;
|
||||
}
|
||||
body {
|
||||
font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
|
||||
background-color: #F8FAFC;
|
||||
|
|
@ -93,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">
|
||||
|
|
@ -3574,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