From 5228ed3fc02d518797c2a347b36e25b849c32d48 Mon Sep 17 00:00:00 2001
From: Chop <28534054+RChopin@users.noreply.github.com>
Date: Thu, 10 Jul 2025 23:41:03 +0200
Subject: [PATCH] feat: Enhance ProjectTasksSection with improved button styles
and layout adjustments
---
src/components/ProjectTasksSection.js | 57 +++++++++++++++++++++++----
src/components/ui/Button.js | 1 +
2 files changed, 50 insertions(+), 8 deletions(-)
diff --git a/src/components/ProjectTasksSection.js b/src/components/ProjectTasksSection.js
index 981350f..6f79b74 100644
--- a/src/components/ProjectTasksSection.js
+++ b/src/components/ProjectTasksSection.js
@@ -456,7 +456,7 @@ export default function ProjectTasksSection({ projectId }) {
Status
|
-
+ |
Actions
|
@@ -522,28 +522,69 @@ export default function ProjectTasksSection({ projectId }) {
/>
-
-
handleEditTask(task)}
- className="text-xs"
+ className="text-xs px-2 py-1 min-w-[60px]"
>
+
Edit
handleDeleteTask(task.id)}
- className="text-xs"
+ className="text-xs px-2 py-1 min-w-[60px]"
>
+
Delete
diff --git a/src/components/ui/Button.js b/src/components/ui/Button.js
index 898cc75..ca07fe8 100644
--- a/src/components/ui/Button.js
+++ b/src/components/ui/Button.js
@@ -9,6 +9,7 @@ const buttonVariants = {
danger: "bg-red-600 hover:bg-red-700 text-white",
success: "bg-green-600 hover:bg-green-700 text-white",
outline: "border border-blue-600 text-blue-600 hover:bg-blue-50",
+ ghost: "text-gray-600 hover:text-gray-900 hover:bg-gray-50",
};
const buttonSizes = {
|