From 8e0473f2c7846f68a49d656745542e833cc5eb3e Mon Sep 17 00:00:00 2001 From: Skitty1238 <157652284+Skitty1238@users.noreply.github.com> Date: Mon, 9 Jun 2025 12:12:01 -0400 Subject: delete button style changes --- src/client/views/nodes/TaskBox.scss | 15 +++++++++++++ src/client/views/nodes/TaskBox.tsx | 44 +++++++++++++++++++++---------------- 2 files changed, 40 insertions(+), 19 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/TaskBox.scss b/src/client/views/nodes/TaskBox.scss index e129e75d1..beee58697 100644 --- a/src/client/views/nodes/TaskBox.scss +++ b/src/client/views/nodes/TaskBox.scss @@ -115,3 +115,18 @@ input[type='datetime-local'] { flex-direction: column; min-width: 0; } + +.task-manager-button-row { + display: flex; + flex-direction: row; + gap: 8px; +} + +.task-manager-delete { + @extend .task-manager-google; + background-color: #182430; + + &:hover { + background-color: #000000; + } +} diff --git a/src/client/views/nodes/TaskBox.tsx b/src/client/views/nodes/TaskBox.tsx index 3c7a2f345..5a54e8049 100644 --- a/src/client/views/nodes/TaskBox.tsx +++ b/src/client/views/nodes/TaskBox.tsx @@ -481,7 +481,7 @@ export class TaskBox extends ViewBoxBaseComponent() { handleDeleteTask = async () => { const doc = this.Document; if (!doc.$googleTaskId) return; - if (!window.confirm('Are you sure you want to permanently delete this task from Google Tasks?')) return; + if (!window.confirm('Are you sure you want to permanently delete this task? This action is undoable.')) return; try { const token = await GoogleAuthenticationManager.Instance.fetchOrGenerateAccessToken(); @@ -583,24 +583,30 @@ export class TaskBox extends ViewBoxBaseComponent() { - - - +
+ + + +
{!allDay && (
-- cgit v1.2.3-70-g09d2