fix: enable vertical scrolling on tasks board columns (#452)
Add min-h-0 to the kanban board flex container and its column children so that overflow-y-auto on column bodies can actually trigger. Without this, flexbox min-height:auto causes containers to grow unbounded instead of constraining height and enabling scroll. Fixes #376 Co-authored-by: Dan <github@bookkept.com.au>
This commit is contained in:
parent
4ddb4d0268
commit
51a51a0ba2
|
|
@ -926,13 +926,13 @@ export function TaskBoardPanel() {
|
|||
)}
|
||||
|
||||
{/* Kanban Board */}
|
||||
<div className="flex-1 flex gap-4 p-4 overflow-x-auto" role="region" aria-label={t('taskBoard')}>
|
||||
<div className="flex-1 min-h-0 flex gap-4 p-4 overflow-x-auto" role="region" aria-label={t('taskBoard')}>
|
||||
{statusColumns.map(column => (
|
||||
<div
|
||||
key={column.key}
|
||||
role="region"
|
||||
aria-label={t('columnAriaLabel', { title: column.title, count: tasksByStatus[column.key]?.length || 0 })}
|
||||
className="flex-1 min-w-80 bg-surface-0 border border-border/60 rounded-xl flex flex-col transition-colors duration-200 [&.drag-over]:border-primary/40 [&.drag-over]:bg-primary/[0.02]"
|
||||
className="flex-1 min-w-80 min-h-0 bg-surface-0 border border-border/60 rounded-xl flex flex-col transition-colors duration-200 [&.drag-over]:border-primary/40 [&.drag-over]:bg-primary/[0.02]"
|
||||
onDragEnter={(e) => handleDragEnter(e, column.key)}
|
||||
onDragLeave={handleDragLeave}
|
||||
onDragOver={handleDragOver}
|
||||
|
|
|
|||
Loading…
Reference in New Issue