Skip to content

Commit

Permalink
feat(retro): make columns scrollable instead of page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Willenbring committed Nov 8, 2023
1 parent fa1894c commit f0e1a00
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
1 change: 1 addition & 0 deletions packages/frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
html {
height: 100%;
overflow-y: hidden;
}

body {
Expand Down
37 changes: 23 additions & 14 deletions packages/frontend/src/retro/components/columns/Column.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,29 @@ export function Column({ column }: ColumnProps) {
>
<ColumnHeader column={column} />
<Divider />
<Droppable droppableId={column.id} type="item" isCombineEnabled={true}>
{(providedDroppable) => (
<Box
flex={1}
p={2}
sx={{ transition: "background-color 0.2s ease" }}
ref={providedDroppable.innerRef}
{...providedDroppable.droppableProps}
>
<Cards column={column} />
{providedDroppable.placeholder}
</Box>
)}
</Droppable>
<Box
sx={{
overflowY: "auto",
}}
>
<Droppable droppableId={column.id} type="item" isCombineEnabled={true}>
{(providedDroppable) => (
<Box
flex={1}
p={2}
minHeight="100%"
sx={{
transition: "background-color 0.2s ease",
}}
ref={providedDroppable.innerRef}
{...providedDroppable.droppableProps}
>
<Cards column={column} />
{providedDroppable.placeholder}
</Box>
)}
</Droppable>
</Box>
</Card>
)}
</Draggable>
Expand Down

0 comments on commit f0e1a00

Please sign in to comment.