From e9c380c35ced7ccda6821b7dfe877f5296c9095b Mon Sep 17 00:00:00 2001 From: Timothy Cardoza Date: Wed, 4 Mar 2026 10:01:54 -0600 Subject: [PATCH] description fixes and delete button location improvements --- src/components/TaskDetail.tsx | 89 ++++++++++++++++++----------------- src/components/TaskEditor.tsx | 2 +- src/views/NotepadView.tsx | 30 ++++++------ 3 files changed, 60 insertions(+), 61 deletions(-) diff --git a/src/components/TaskDetail.tsx b/src/components/TaskDetail.tsx index 4e4335a..d17b067 100644 --- a/src/components/TaskDetail.tsx +++ b/src/components/TaskDetail.tsx @@ -417,58 +417,59 @@ export const TaskDetail: Component = (props) => { /> - {/* Tags at the bottom */} -
-
- Tags -
- -
- - {(tag) => ( - + + {/* Sticky Tags Area */} +
+
+ Tags +
+ +
+ + {(tag) => ( + { + const def = store.tagDefinitions.find(d => d.name === tag); + const color = getThemeAdjustedColor(def?.color, def?.theme, resolvedTheme()); + return color ? `${color}15` : undefined; + })(), + "border-color": (() => { + const def = store.tagDefinitions.find(d => d.name === tag); + const color = getThemeAdjustedColor(def?.color, def?.theme, resolvedTheme()); + return color ? `${color}30` : undefined; + })(), + "color": (() => { + const def = store.tagDefinitions.find(d => d.name === tag); + return getThemeAdjustedColor(def?.color, def?.theme, resolvedTheme()) || "inherit"; + })() + }} + onClick={() => updateTags(visibleTags().filter(t => t !== tag))} + > +
{ - const def = store.tagDefinitions.find(d => d.name === tag); - const color = getThemeAdjustedColor(def?.color, def?.theme, resolvedTheme()); - return color ? `${color}15` : undefined; - })(), - "border-color": (() => { - const def = store.tagDefinitions.find(d => d.name === tag); - const color = getThemeAdjustedColor(def?.color, def?.theme, resolvedTheme()); - return color ? `${color}30` : undefined; - })(), - "color": (() => { - const def = store.tagDefinitions.find(d => d.name === tag); - return getThemeAdjustedColor(def?.color, def?.theme, resolvedTheme()) || "inherit"; - })() + "background-color": (store.tagDefinitions.find(d => d.name === tag)?.value ?? 5) > 5 ? "#22c55e" : (store.tagDefinitions.find(d => d.name === tag)?.value ?? 5) < 5 ? "#ef4444" : "#94a3b8" }} - onClick={() => updateTags(visibleTags().filter(t => t !== tag))} - > -
d.name === tag)?.value ?? 5) > 5 ? "#22c55e" : (store.tagDefinitions.find(d => d.name === tag)?.value ?? 5) < 5 ? "#ef4444" : "#94a3b8" - }} - /> - {tag} - - - )} - -
+ /> + {tag} + + + )} +
{/* Sticky Footer Actions */} -
+
{/* Delete button (persistent) */} -
-
{/* Linked Tasks Sidebar */} @@ -369,10 +354,23 @@ export const NotepadView: Component<{
+ + {/* Sticky Full-Width Mobile Close Footer */} +
+ +
+
); }} - +
);