summaryrefslogtreecommitdiffci
path: root/views
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <saya.andy@posteo.com> 2026-05-03 16:55:24 +0700
committerGravatar SayaAndy <saya.andy@posteo.com> 2026-05-03 16:55:24 +0700
commitf5b3e8cc3cd4e26c327b00970173f5449e790282 (patch)
treed143a7e0234bc7835a75e2b997d043190056adb0 /views
parent8243ad9ec7b50b0aaf402c91decf3c8093ecb77a (diff)
downloadweb-f5b3e8cc3cd4e26c327b00970173f5449e790282.tar.gz
web-f5b3e8cc3cd4e26c327b00970173f5449e790282.zip
fix: always recalculate theme wheel size on opening
Diffstat (limited to 'views')
-rw-r--r--views/layouts/general-page.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/layouts/general-page.html b/views/layouts/general-page.html
index 3920bdb..fb018e3 100644
--- a/views/layouts/general-page.html
+++ b/views/layouts/general-page.html
@@ -612,7 +612,6 @@
const themeWheel = document.getElementById("theme-wheel");
const themeButton = document.getElementById("sidebar-theme-button");
const themeIcons = document.querySelectorAll(".theme-icon");
- const themeWheelRadius = convertRemToPixels(6);
themeIcons.forEach((icon) => {
if (icon.getAttribute("data-theme") == savedTheme) {
@@ -641,7 +640,7 @@
const clipPath = createSliceClipPath(
startAngle,
endAngle,
- themeWheelRadius,
+ convertRemToPixels(6),
);
icon.style.clipPath = clipPath;
});
@@ -676,6 +675,7 @@
const buttonRect = themeButton.getBoundingClientRect();
const buttonCenterX = buttonRect.left + buttonRect.width / 2;
const buttonCenterY = buttonRect.top + buttonRect.height / 2;
+ const themeWheelRadius = convertRemToPixels(6);
const margin = 0;