Skip to content

Commit 5c00bf7

Browse files
committed
improve kanban loading skeleton
1 parent 1a90366 commit 5c00bf7

1 file changed

Lines changed: 22 additions & 8 deletions

File tree

‎apps/codebility/app/home/kanban/page.tsx‎

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,28 @@ export default async function KanbanPage(props: PageProps) {
121121

122122
// Loading state
123123
if (!typedProjects) {
124-
return Array.from({ length: 3 }).map((_, index) => (
125-
<TableRow key={`loading-${index}`}>
126-
<TableCell colSpan={4}>
127-
<Box className="flex-1">
128-
<div className="flex flex-col items-center gap-3">
129-
<Skeleton className="h-8 w-full" />
130-
</div>
131-
</Box>
124+
return Array.from({ length: 5 }).map((_, index) => (
125+
<TableRow key={`loading-${index}`} className="grid grid-cols-1 md:table-row">
126+
{/* Project Name Column */}
127+
<TableCell className="md:table-cell">
128+
<div className="flex items-center gap-3">
129+
<Skeleton className="h-5 w-24 md:w-32" />
130+
</div>
131+
</TableCell>
132+
133+
{/* Team Lead Column */}
134+
<TableCell className="md:table-cell">
135+
<div className="flex items-center gap-2">
136+
<Skeleton className="h-8 w-8 rounded-full" />
137+
<Skeleton className="h-4 w-28 md:w-36" />
138+
</div>
139+
</TableCell>
140+
141+
{/* Actions Column */}
142+
<TableCell className="text-center md:table-cell">
143+
<div className="flex justify-center">
144+
<Skeleton className="h-9 w-24 md:w-28 rounded-md" />
145+
</div>
132146
</TableCell>
133147
</TableRow>
134148
));

0 commit comments

Comments
 (0)