refactor(priority-section): remove task name display from PrioritySection
- Eliminated the task name display from the PrioritySection component for a cleaner layout. - Updated BoardViewTaskCard to include task name alongside the PrioritySection for improved organization.
This commit is contained in:
@@ -53,12 +53,6 @@ const PrioritySection = ({ task }: PrioritySectionProps) => {
|
||||
return (
|
||||
<Flex gap={4}>
|
||||
{priorityIcon}
|
||||
<Typography.Text
|
||||
style={{ fontWeight: 500 }}
|
||||
ellipsis={{ tooltip: task.name }}
|
||||
>
|
||||
{task.name}
|
||||
</Typography.Text>
|
||||
</Flex>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -287,9 +287,17 @@ const BoardViewTaskCard = ({ task, sectionId }: IBoardViewTaskCardProps) => {
|
||||
<Progress type="circle" percent={task?.complete_ratio} size={26} strokeWidth={(task.complete_ratio || 0) >= 100 ? 9 : 7} />
|
||||
</Tooltip>
|
||||
</Flex>
|
||||
<Flex gap={4} align="center">
|
||||
{/* Action Icons */}
|
||||
<PrioritySection task={task} />
|
||||
<Typography.Text
|
||||
style={{ fontWeight: 500 }}
|
||||
ellipsis={{ tooltip: task.name }}
|
||||
>
|
||||
{task.name}
|
||||
</Typography.Text>
|
||||
</Flex>
|
||||
|
||||
{/* Action Icons */}
|
||||
<PrioritySection task={task} />
|
||||
|
||||
<Flex vertical gap={8}>
|
||||
<Flex
|
||||
|
||||
Reference in New Issue
Block a user