Skip to content

Commit 18a7618

Browse files
fix(ui): prevent canvas & main panel content from scrolling
Hopefully fixes issues where, when run via the launcher, the main panel kinda just scrolls out of bounds.
1 parent afc9d3b commit 18a7618

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

invokeai/frontend/web/src/features/controlLayers/components/CanvasMainPanelContent.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export const CanvasMainPanelContent = memo(() => {
5757
gap={2}
5858
alignItems="center"
5959
justifyContent="center"
60+
overflow="hidden"
6061
>
6162
<CanvasManagerProviderGate>
6263
<CanvasToolbar />
@@ -70,6 +71,7 @@ export const CanvasMainPanelContent = memo(() => {
7071
h="full"
7172
bg={dynamicGrid ? 'base.850' : 'base.900'}
7273
borderRadius="base"
74+
overflow="hidden"
7375
>
7476
<InvokeCanvasComponent />
7577
<CanvasManagerProviderGate>

invokeai/frontend/web/src/features/gallery/components/ImageViewer/ImageViewer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const ImageViewer = memo(({ closeButton }: Props) => {
4646
left={0}
4747
alignItems="center"
4848
justifyContent="center"
49+
overflow="hidden"
4950
>
5051
{hasImageToCompare && <CompareToolbar />}
5152
{!hasImageToCompare && <ViewerToolbar closeButton={closeButton} />}

invokeai/frontend/web/src/features/ui/components/AppContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const AppContent = memo(() => {
117117
});
118118

119119
return (
120-
<Flex id="invoke-app-tabs" w="full" h="full" gap={4} p={4}>
120+
<Flex id="invoke-app-tabs" w="full" h="full" gap={4} p={4} overflow="hidden">
121121
<VerticalNavBar />
122122
<PanelGroup
123123
ref={imperativePanelGroupRef}

0 commit comments

Comments
 (0)