refactor(dashboard): improve responsive column layout with auto-fit grid
All checks were successful
Deploy Flowstate to VPS / deploy (push) Successful in 44s
All checks were successful
Deploy Flowstate to VPS / deploy (push) Successful in 44s
This commit is contained in:
parent
d337425a30
commit
f3cb400d44
2 changed files with 5 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ export default function Board({ tasks }: { tasks: Task[] }) {
|
|||
<Header onTaskDelete={deleteTask} />
|
||||
|
||||
{/* Columns Grid */}
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-2 gap-6 items-start">
|
||||
<div className="grid grid-auto-fit-450 gap-4 items-start">
|
||||
{COLUMNS.map((col) => {
|
||||
const columnTasks = tasks.filter((t) => t.status === col.id);
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -31,3 +31,7 @@
|
|||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
}
|
||||
|
||||
@utility grid-auto-fit-450 {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue