fix handle inside system

This commit is contained in:
arifal
2025-08-20 02:30:46 +07:00
parent 844fbdfa89
commit 6a060f5dac
3 changed files with 21 additions and 2 deletions

View File

@@ -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";