mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-21 22:18:17 +02:00
Merge pull request #531 from R0m1k3/1.1
feat: implement mobile task management page for mobile devices, inclu…
This commit is contained in:
1 file changed
+5
-5
@@ -217,8 +217,8 @@ function TaskCard({
|
|||||||
const isCompleted = task.status === 'completed';
|
const isCompleted = task.status === 'completed';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card className={`mb-3 ${isCompleted ? 'opacity-60' : ''}`}>
|
<Card className={`mb-3 overflow-hidden ${isCompleted ? 'opacity-60' : ''}`}>
|
||||||
<CardContent className="p-4">
|
<CardContent className="p-3">
|
||||||
{/* Header: Priority + Due Date */}
|
{/* Header: Priority + Due Date */}
|
||||||
<div className="flex items-center justify-between mb-2">
|
<div className="flex items-center justify-between mb-2">
|
||||||
<Badge className={`${priority.color} border text-xs`}>
|
<Badge className={`${priority.color} border text-xs`}>
|
||||||
@@ -234,13 +234,13 @@ function TaskCard({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Title */}
|
{/* Title */}
|
||||||
<h3 className={`font-semibold text-base mb-1 ${isCompleted ? 'line-through text-gray-500' : ''}`}>
|
<h3 className={`font-semibold text-base mb-1 break-words ${isCompleted ? 'line-through text-gray-500' : ''}`}>
|
||||||
{task.title}
|
{task.title}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
{/* Description */}
|
{/* Description */}
|
||||||
{task.description && (
|
{task.description && (
|
||||||
<p className="text-sm text-gray-600 mb-3 line-clamp-2">{task.description}</p>
|
<p className="text-sm text-gray-600 mb-3 line-clamp-2 break-words">{task.description}</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Assigned To */}
|
{/* Assigned To */}
|
||||||
@@ -421,7 +421,7 @@ export default function MobileTasksPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Task List */}
|
{/* Task List */}
|
||||||
<div className="p-4">
|
<div className="px-3 py-2 overflow-hidden" style={{ maxWidth: '100%' }}>
|
||||||
{filteredTasks.length === 0 ? (
|
{filteredTasks.length === 0 ? (
|
||||||
<div className="text-center py-12 text-gray-500">
|
<div className="text-center py-12 text-gray-500">
|
||||||
<ListTodo className="w-12 h-12 mx-auto mb-3 opacity-50" />
|
<ListTodo className="w-12 h-12 mx-auto mb-3 opacity-50" />
|
||||||
|
|||||||
Reference in new issue
Block a user