From 0d12e4b313dc4913fd9ee7db95521c1bfe204aa7 Mon Sep 17 00:00:00 2001 From: Florian Egger Date: Mon, 13 Jul 2026 14:50:51 +0200 Subject: [PATCH] Clamp brightness levelbar value and fix spinbutton adjustment initialization --- pinenote-shell/src/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pinenote-shell/src/main.js b/pinenote-shell/src/main.js index bd3c1f8..0ba0cb4 100644 --- a/pinenote-shell/src/main.js +++ b/pinenote-shell/src/main.js @@ -288,7 +288,7 @@ function PinenoteShell() { v / 100)} + value={brightnessLevel((v) => Math.max(0, Math.min(1, (v || 0) / 100)))} min={0} max={1} /> @@ -319,8 +319,8 @@ function PinenoteShell() {