fix handle inside system
This commit is contained in:
@@ -283,6 +283,15 @@ function resizeDashboard() {
|
||||
dashboardElement.style.transition = "transform 0.2s ease-in-out";
|
||||
dashboardElement.style.transform = `scale(${scaleFactor})`;
|
||||
|
||||
// Fix SVG scaling issue - reset SVG transform to prevent oversized icons
|
||||
const svgElements = dashboardElement.querySelectorAll("svg");
|
||||
svgElements.forEach((svg) => {
|
||||
svg.style.transform = `scale(${1 / scaleFactor})`;
|
||||
svg.style.transformOrigin = "center";
|
||||
svg.style.width = "17px";
|
||||
svg.style.height = "17px";
|
||||
});
|
||||
|
||||
// Ensure horizontal scrolling is allowed if necessary
|
||||
if (document.body) {
|
||||
document.body.style.overflowX = "auto";
|
||||
|
||||
Reference in New Issue
Block a user