Skip to content

Commit 1c69b9b

Browse files
fix(ui): restore display: flex to image viewer and node editor
This was inadventently removed in #7786 and caused some minor layout overflow.
1 parent 731970f commit 1c69b9b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const useFocusRegionOptions = {
2626
};
2727

2828
const FOCUS_REGION_STYLES: SystemStyleObject = {
29+
display: 'flex',
2930
width: 'full',
3031
height: 'full',
3132
position: 'absolute',
@@ -45,7 +46,7 @@ export const ImageViewer = memo(({ closeButton }: Props) => {
4546
<FocusRegionWrapper region="viewer" sx={FOCUS_REGION_STYLES} layerStyle="first" {...useFocusRegionOptions}>
4647
{hasImageToCompare && <CompareToolbar />}
4748
{!hasImageToCompare && <ViewerToolbar closeButton={closeButton} />}
48-
<Box ref={containerRef} w="full" h="full" p={2}>
49+
<Box ref={containerRef} w="full" h="full" p={2} overflow="hidden">
4950
{!hasImageToCompare && <CurrentImagePreview />}
5051
{hasImageToCompare && <ImageComparison containerDims={containerDims} />}
5152
</Box>

invokeai/frontend/web/src/features/nodes/components/NodeEditor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import BottomLeftPanel from './flow/panels/BottomLeftPanel/BottomLeftPanel';
1414
import MinimapPanel from './flow/panels/MinimapPanel/MinimapPanel';
1515

1616
const FOCUS_REGION_STYLES: SystemStyleObject = {
17+
display: 'flex',
1718
position: 'relative',
1819
width: 'full',
1920
height: 'full',

0 commit comments

Comments
 (0)