mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): reactflow drag interactions with custom scrollbar
This commit is contained in:
@@ -73,7 +73,16 @@ export const ImageFieldCollectionInputComponent = memo(
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex position="relative" w="full" h="full" minH={16} maxH={64} alignItems="stretch" justifyContent="center">
|
<Flex
|
||||||
|
className="nodrag"
|
||||||
|
position="relative"
|
||||||
|
w="full"
|
||||||
|
h="full"
|
||||||
|
minH={16}
|
||||||
|
maxH={64}
|
||||||
|
alignItems="stretch"
|
||||||
|
justifyContent="center"
|
||||||
|
>
|
||||||
{(!field.value || field.value.length === 0) && (
|
{(!field.value || field.value.length === 0) && (
|
||||||
<UploadMultipleImageButton
|
<UploadMultipleImageButton
|
||||||
w="full"
|
w="full"
|
||||||
@@ -86,8 +95,13 @@ export const ImageFieldCollectionInputComponent = memo(
|
|||||||
)}
|
)}
|
||||||
{field.value && field.value.length > 0 && (
|
{field.value && field.value.length > 0 && (
|
||||||
<Box w="full" h="auto" p={1} sx={sx} data-error={isInvalid} borderRadius="base">
|
<Box w="full" h="auto" p={1} sx={sx} data-error={isInvalid} borderRadius="base">
|
||||||
<OverlayScrollbarsComponent defer style={overlayScrollbarsStyles} options={overlayscrollbarsOptions}>
|
<OverlayScrollbarsComponent
|
||||||
<Grid className="nopan nowheel" w="full" h="full" templateColumns="repeat(4, 1fr)" gap={1}>
|
className="nowheel"
|
||||||
|
defer
|
||||||
|
style={overlayScrollbarsStyles}
|
||||||
|
options={overlayscrollbarsOptions}
|
||||||
|
>
|
||||||
|
<Grid w="full" h="full" templateColumns="repeat(4, 1fr)" gap={1}>
|
||||||
{field.value.map(({ image_name }) => (
|
{field.value.map(({ image_name }) => (
|
||||||
<GridItem key={image_name} position="relative" className="nodrag">
|
<GridItem key={image_name} position="relative" className="nodrag">
|
||||||
<ImageGridItemContent imageName={image_name} onRemoveImage={onRemoveImage} />
|
<ImageGridItemContent imageName={image_name} onRemoveImage={onRemoveImage} />
|
||||||
|
|||||||
Reference in New Issue
Block a user