Skip to content

Commit e132ea5

Browse files
fix: fix scroll bar in presentation mode (#3388)
1 parent 65bee03 commit e132ea5

File tree

1 file changed

+30
-28
lines changed

1 file changed

+30
-28
lines changed

src/flows/components/PipeList.tsx

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -71,34 +71,36 @@ const PipeList: FC = () => {
7171
}
7272

7373
return (
74-
<Grid
75-
cols={12}
76-
layout={layout}
77-
rowHeight={DASHBOARD_LAYOUT_ROW_HEIGHT}
78-
useCSSTransforms={false}
79-
containerPadding={[0, 0]}
80-
margin={[LAYOUT_MARGIN, LAYOUT_MARGIN]}
81-
onLayoutChange={layoutChange}
82-
draggableHandle=".cell--draggable"
83-
isDraggable
84-
isResizable
85-
>
86-
{flow.data.allIDs
87-
.filter(
88-
id =>
89-
/^(visualization|markdown)$/.test(flow.data.byID[id]?.type) &&
90-
flow.meta.byID[id].visible
91-
)
92-
.map(id => (
93-
<div
94-
key={id}
95-
className="cell"
96-
data-testid={`cell ${flow.meta.byID[id].title}`}
97-
>
98-
<PresentationPipe id={id} />
99-
</div>
100-
))}
101-
</Grid>
74+
<div className="flow">
75+
<Grid
76+
cols={12}
77+
layout={layout}
78+
rowHeight={DASHBOARD_LAYOUT_ROW_HEIGHT}
79+
useCSSTransforms={false}
80+
containerPadding={[0, 0]}
81+
margin={[LAYOUT_MARGIN, LAYOUT_MARGIN]}
82+
onLayoutChange={layoutChange}
83+
draggableHandle=".cell--draggable"
84+
isDraggable
85+
isResizable
86+
>
87+
{flow.data.allIDs
88+
.filter(
89+
id =>
90+
/^(visualization|markdown)$/.test(flow.data.byID[id]?.type) &&
91+
flow.meta.byID[id].visible
92+
)
93+
.map(id => (
94+
<div
95+
key={id}
96+
className="cell"
97+
data-testid={`cell ${flow.meta.byID[id].title}`}
98+
>
99+
<PresentationPipe id={id} />
100+
</div>
101+
))}
102+
</Grid>
103+
</div>
102104
)
103105
}
104106

0 commit comments

Comments
 (0)