Skip to content

Commit

Permalink
fix(ui): prevent canvas & main panel content from scrolling
Browse files Browse the repository at this point in the history
Hopefully fixes issues where, when run via the launcher, the main panel kinda just scrolls out of bounds.
  • Loading branch information
psychedelicious committed Jan 8, 2025
1 parent d7893a5 commit 89b576f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const CanvasMainPanelContent = memo(() => {
gap={2}
alignItems="center"
justifyContent="center"
overflow="hidden"
>
<CanvasManagerProviderGate>
<CanvasToolbar />
Expand All @@ -70,6 +71,7 @@ export const CanvasMainPanelContent = memo(() => {
h="full"
bg={dynamicGrid ? 'base.850' : 'base.900'}
borderRadius="base"
overflow="hidden"
>
<InvokeCanvasComponent />
<CanvasManagerProviderGate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const ImageViewer = memo(({ closeButton }: Props) => {
left={0}
alignItems="center"
justifyContent="center"
overflow="hidden"
>
{hasImageToCompare && <CompareToolbar />}
{!hasImageToCompare && <ViewerToolbar closeButton={closeButton} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const AppContent = memo(() => {
});

return (
<Flex id="invoke-app-tabs" w="full" h="full" gap={4} p={4}>
<Flex id="invoke-app-tabs" w="full" h="full" gap={4} p={4} overflow="hidden">
<VerticalNavBar />
<PanelGroup
ref={imperativePanelGroupRef}
Expand Down

0 comments on commit 89b576f

Please sign in to comment.