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.
This commit is contained in:
psychedelicious
2025-01-08 15:18:53 +11:00
parent d7893a52c3
commit 89b576f10d
3 changed files with 4 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ export const CanvasMainPanelContent = memo(() => {
gap={2}
alignItems="center"
justifyContent="center"
overflow="hidden"
>
<CanvasManagerProviderGate>
<CanvasToolbar />
@@ -70,6 +71,7 @@ export const CanvasMainPanelContent = memo(() => {
h="full"
bg={dynamicGrid ? 'base.850' : 'base.900'}
borderRadius="base"
overflow="hidden"
>
<InvokeCanvasComponent />
<CanvasManagerProviderGate>

View File

@@ -46,6 +46,7 @@ export const ImageViewer = memo(({ closeButton }: Props) => {
left={0}
alignItems="center"
justifyContent="center"
overflow="hidden"
>
{hasImageToCompare && <CompareToolbar />}
{!hasImageToCompare && <ViewerToolbar closeButton={closeButton} />}

View File

@@ -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}