From 27ccd275f6b1d87eaba02ba782a5d88965a4ed37 Mon Sep 17 00:00:00 2001 From: mARTin Date: Mon, 13 Apr 2026 09:56:19 +0200 Subject: [PATCH] fix: S/M/L font size buttons now take effect immediately MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit saveSetting() for DEVICE_SETTINGS_KEYS (viewDays, cellDuration, startHour, endHour, fontSize, showSubHourSlots) was saving to the cookie but returning early before calling setProfile — so profile.fontSize never changed and the CSS class font-size-s/m/l was never applied. Adding setProfile() to the device-settings path fixes all of these keys at once while still keeping the setting out of the DB. v1.95.6 --- package.json | 2 +- src/components/WeeklyView.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b357e25..9caa1ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.95.5", + "version": "1.95.6", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index 96d7b05..53a08ef 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -2287,6 +2287,7 @@ export default function WeeklyView() { // Per-device settings: save to cookie ONLY (not DB) so each device keeps its own value if (DEVICE_SETTINGS_KEYS.includes(key)) { setCookie(`setting_${key}`, String(value)); + setProfile((p: any) => ({ ...p, [key]: value })); // still update profile so rendering reacts immediately return; // Don't write to DB — that would overwrite other devices } // Also persist to device cookie so this device remembers its own preference on reload