From 4e2d978eb5fc9457d5b913bc10faf1266e6dcda4 Mon Sep 17 00:00:00 2001 From: Solstice Date: Tue, 9 Jun 2026 01:02:30 -0700 Subject: chore: final polish and preparation for release --- src/components/TimerView.tsx | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) (limited to 'src/components/TimerView.tsx') diff --git a/src/components/TimerView.tsx b/src/components/TimerView.tsx index 973f09f..896c03a 100644 --- a/src/components/TimerView.tsx +++ b/src/components/TimerView.tsx @@ -1,3 +1,4 @@ +import type { CSSProperties } from 'react'; import { invoke } from '@tauri-apps/api/core'; import { useTimerStore, TimerPhase } from '../store/timerStore'; import { useTaskStore } from '../store/taskStore'; @@ -7,6 +8,18 @@ const STROKE = 8; const RADIUS = (RING_SIZE - STROKE) / 2; const CIRCUMFERENCE = 2 * Math.PI * RADIUS; +const TASK_LABEL_STYLE: CSSProperties = { + fontFamily: 'var(--font-sans)', + fontSize: '14px', + color: 'var(--fg-3)', + maxWidth: '320px', + textAlign: 'center', + minHeight: '20px', + overflow: 'hidden', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', +}; + function phaseLabel(phase: TimerPhase): string { switch (phase) { case 'work': return 'Focus'; @@ -60,9 +73,9 @@ export function TimerView() { flexDirection: 'column', alignItems: 'center', justifyContent: 'center', - gap: '24px', + gap: '20px', flex: 1, - padding: '32px', + padding: '24px 20px', }} > {/* Eyebrow */} @@ -142,25 +155,10 @@ export function TimerView() { {/* Current task name */} - {currentTask && ( - - {currentTask.name} - - )} + {currentTask ? currentTask.name : 'No task selected'} {/* Controls */} -
+