From 7094e54432c9d0fa018967ca9736341e23b2fac9 Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 24 Mar 2026 22:02:44 +0100 Subject: [PATCH] Add 150 char limit to day notes input --- client/src/components/Planner/DayPlanSidebar.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/Planner/DayPlanSidebar.jsx b/client/src/components/Planner/DayPlanSidebar.jsx index 9c5d2ef..c9a720e 100644 --- a/client/src/components/Planner/DayPlanSidebar.jsx +++ b/client/src/components/Planner/DayPlanSidebar.jsx @@ -932,6 +932,7 @@ export default function DayPlanSidebar({ ref={noteInputRef} type="text" value={ui.text} + maxLength={150} onChange={e => setNoteUi(prev => ({ ...prev, [dayId]: { ...prev[dayId], text: e.target.value } }))} onKeyDown={e => { if (e.key === 'Enter') { e.preventDefault(); saveNote(Number(dayId)) } if (e.key === 'Escape') cancelNote(Number(dayId)) }} placeholder={t('dayplan.noteTitle')}