From 85246a1c98ad02934f1b2ce355fb3fafd5df496b Mon Sep 17 00:00:00 2001 From: mkzxc Date: Tue, 16 Dec 2025 17:23:00 +0100 Subject: [PATCH] fix(ui): body should not be scrollable when opening pomodoro settings --- src/components/toolbar/menu/menu.tsx | 6 +----- src/components/toolbox/pomodoro/pomodoro.tsx | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/toolbar/menu/menu.tsx b/src/components/toolbar/menu/menu.tsx index 33d8f513..4783571d 100644 --- a/src/components/toolbar/menu/menu.tsx +++ b/src/components/toolbar/menu/menu.tsx @@ -179,11 +179,7 @@ export function Menu() { show={modals.shortcuts} onClose={() => close('shortcuts')} /> - open('pomodoro')} - show={modals.pomodoro} - onClose={() => close('pomodoro')} - /> + close('pomodoro')} /> close('notepad')} /> close('todo')} /> close('countdown')} /> diff --git a/src/components/toolbox/pomodoro/pomodoro.tsx b/src/components/toolbox/pomodoro/pomodoro.tsx index 7d6ea7b0..050c17e1 100644 --- a/src/components/toolbox/pomodoro/pomodoro.tsx +++ b/src/components/toolbox/pomodoro/pomodoro.tsx @@ -17,11 +17,10 @@ import styles from './pomodoro.module.css'; interface PomodoroProps { onClose: () => void; - open: () => void; show: boolean; } -export function Pomodoro({ onClose, open, show }: PomodoroProps) { +export function Pomodoro({ onClose, show }: PomodoroProps) { const [showSetting, setShowSetting] = useState(false); const [selectedTab, setSelectedTab] = useState('pomodoro'); @@ -130,7 +129,6 @@ export function Pomodoro({ onClose, open, show }: PomodoroProps) { icon={} tooltip="Change Times" onClick={() => { - onClose(); setShowSetting(true); }} /> @@ -167,11 +165,9 @@ export function Pomodoro({ onClose, open, show }: PomodoroProps) { onChange={times => { setShowSetting(false); setTimes(times); - open(); }} onClose={() => { setShowSetting(false); - open(); }} />