diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-06-10 23:39:24 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-06-10 23:39:24 -0700 |
| commit | 0fb6d49be075597fa0812325c7419789d19bcbe8 (patch) | |
| tree | f65a40a30f2f19a27ffd2f9e27e201499ee72b3e /src/App.tsx | |
| parent | be38ca61ed85e4493e645c97d69251cdcc02b80b (diff) | |
Diffstat (limited to 'src/App.tsx')
| -rw-r--r-- | src/App.tsx | 62 |
1 files changed, 24 insertions, 38 deletions
diff --git a/src/App.tsx b/src/App.tsx index 29ac64f..b4aaec7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,7 +3,6 @@ import { TimerView } from './components/TimerView'; import { TaskList } from './components/TaskList'; import { SettingsPanel } from './components/SettingsPanel'; import { NotificationOverlay } from './components/NotificationOverlay'; -import { AmbientControl } from './components/AmbientControl'; import { useTimerEvents } from './hooks/useTimerEvents'; import { useTaskStore } from './store/taskStore'; import { useAudioStore } from './store/audioStore'; @@ -65,48 +64,35 @@ function App() { <TaskList /> {/* Main area */} - <div style={{ flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden' }}> - {/* Top bar */} - <div + <div style={{ flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden', position: 'relative' }}> + <button + onClick={() => setSettingsOpen(true)} + title="Settings" style={{ + position: 'absolute', + top: '14px', + right: '16px', display: 'flex', - alignItems: 'flex-start', - flexWrap: 'wrap', - justifyContent: 'space-between', - gap: '16px', - padding: '12px 16px', - borderBottom: '1px solid var(--line-1)', + alignItems: 'center', + padding: '6px', + border: 'none', + background: 'transparent', + color: 'var(--fg-3)', + cursor: 'pointer', + borderRadius: 'var(--r-2)', + transition: 'color 0.15s ease', + zIndex: 2, + }} + onMouseEnter={(e) => { + (e.currentTarget as HTMLButtonElement).style.color = 'var(--fg-1)'; + }} + onMouseLeave={(e) => { + (e.currentTarget as HTMLButtonElement).style.color = 'var(--fg-3)'; }} > - <AmbientControl /> - - <button - onClick={() => setSettingsOpen(true)} - title="Settings" - style={{ - display: 'flex', - alignItems: 'center', - padding: '6px', - border: 'none', - background: 'transparent', - color: 'var(--fg-3)', - cursor: 'pointer', - borderRadius: 'var(--r-2)', - marginLeft: 'auto', - transition: 'color 0.15s ease', - }} - onMouseEnter={(e) => { - (e.currentTarget as HTMLButtonElement).style.color = 'var(--fg-1)'; - }} - onMouseLeave={(e) => { - (e.currentTarget as HTMLButtonElement).style.color = 'var(--fg-3)'; - }} - > - <GearIcon /> - </button> - </div> + <GearIcon /> + </button> - {/* Timer */} <TimerView /> </div> |
