From c69b9d15207b71ff727e9c0e0ec4e3d654dff0a7 Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Thu, 21 May 2026 19:12:10 +0330 Subject: [PATCH] fix(timesheet): soften editable description placeholder --- src/pages/Timesheet.tsx | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/pages/Timesheet.tsx b/src/pages/Timesheet.tsx index 0266dd0..1bd2556 100644 --- a/src/pages/Timesheet.tsx +++ b/src/pages/Timesheet.tsx @@ -1260,10 +1260,10 @@ function EntryEditorFields({
onChange({ description: event.target.value })} - placeholder={t.timesheet?.descriptionPlaceholder || "What are you working on?"} - className="h-12 w-[200px] 2xl:w-[400px] shrink-0 rounded-none border-0 bg-transparent px-0 pe-3 text-sm shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 truncate dark:bg-transparent dark:text-slate-100" + value={state.description} + onChange={(event) => onChange({ description: event.target.value })} + placeholder={t.timesheet?.descriptionPlaceholder || "What are you working on?"} + className="h-12 w-[200px] 2xl:w-[400px] shrink-0 rounded-none border-0 bg-transparent px-0 pe-3 text-sm shadow-none placeholder:text-slate-300 focus-visible:ring-0 focus-visible:ring-offset-0 truncate dark:bg-transparent dark:text-slate-100 dark:placeholder:text-slate-600" /> @@ -1342,11 +1342,11 @@ function EntryEditorFields({ - onChange({ description: event.target.value })} - placeholder={t.timesheet?.descriptionPlaceholder || "What are you working on?"} - className={compact ? "h-9 px-2 text-xs" : ""} + onChange({ description: event.target.value })} + placeholder={t.timesheet?.descriptionPlaceholder || "What are you working on?"} + className={compact ? "h-9 px-2 text-xs placeholder:text-slate-300 dark:placeholder:text-slate-600" : "placeholder:text-slate-300 dark:placeholder:text-slate-600"} />
@@ -2643,11 +2643,11 @@ export default function Timesheet() {
setTimerDraft((current) => ({ ...current, description: event.target.value }))} - disabled={isStartingTimer} - className="h-12 rounded-none border-0 bg-transparent dark:bg-transparent px-5 text-sm shadow-none focus-visible:ring-0 focus-visible:ring-offset-0" + value={timerDraft.description} + placeholder={t.timesheet?.descriptionPlaceholder || "What are you working on?"} + onChange={(event) => setTimerDraft((current) => ({ ...current, description: event.target.value }))} + disabled={isStartingTimer} + className="h-12 rounded-none border-0 bg-transparent px-5 text-sm shadow-none placeholder:text-slate-300 focus-visible:ring-0 focus-visible:ring-offset-0 dark:bg-transparent dark:placeholder:text-slate-600" />
@@ -2751,11 +2751,11 @@ export default function Timesheet() { >
setTimerDraft((current) => ({ ...current, description: event.target.value }))} - disabled={isStartingTimer} - className="h-10 border-slate-200 bg-slate-50 text-sm dark:border-slate-700 dark:bg-slate-900" + value={timerDraft.description} + placeholder={t.timesheet?.descriptionPlaceholder || "What are you working on?"} + onChange={(event) => setTimerDraft((current) => ({ ...current, description: event.target.value }))} + disabled={isStartingTimer} + className="h-10 border-slate-200 bg-slate-50 text-sm placeholder:text-slate-300 dark:border-slate-700 dark:bg-slate-900 dark:placeholder:text-slate-600" />