mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): gallery minSize tweak (#3618)
- Set min size for floating gallery panel - Correct the default pinned width (it cannot be less than the min width and this was sometimes happening during window resize)
This commit is contained in:
commit
96212bb35f
@ -120,7 +120,7 @@ const GalleryDrawer = () => {
|
|||||||
isResizable={true}
|
isResizable={true}
|
||||||
isOpen={shouldShowGallery}
|
isOpen={shouldShowGallery}
|
||||||
onClose={handleCloseGallery}
|
onClose={handleCloseGallery}
|
||||||
minWidth={200}
|
minWidth={337}
|
||||||
>
|
>
|
||||||
<ImageGalleryContent />
|
<ImageGalleryContent />
|
||||||
</ResizableDrawer>
|
</ResizableDrawer>
|
||||||
|
@ -200,7 +200,11 @@ const InvokeTabs = () => {
|
|||||||
onResize={handleResizeGallery}
|
onResize={handleResizeGallery}
|
||||||
id="gallery"
|
id="gallery"
|
||||||
order={3}
|
order={3}
|
||||||
defaultSize={galleryMinSizePct}
|
defaultSize={
|
||||||
|
galleryMinSizePct > DEFAULT_GALLERY_PCT
|
||||||
|
? galleryMinSizePct
|
||||||
|
: DEFAULT_GALLERY_PCT
|
||||||
|
}
|
||||||
minSize={galleryMinSizePct}
|
minSize={galleryMinSizePct}
|
||||||
maxSize={50}
|
maxSize={50}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user