File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
invokeai/frontend/web/src/features
gallery/components/ImageViewer Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const useFocusRegionOptions = {
2626} ;
2727
2828const 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 >
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import BottomLeftPanel from './flow/panels/BottomLeftPanel/BottomLeftPanel';
1414import MinimapPanel from './flow/panels/MinimapPanel/MinimapPanel' ;
1515
1616const FOCUS_REGION_STYLES : SystemStyleObject = {
17+ display : 'flex' ,
1718 position : 'relative' ,
1819 width : 'full' ,
1920 height : 'full' ,
You can’t perform that action at this time.
0 commit comments