Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
fix(gallery): strengthen the touch drag cue to full grayscale
Lincoln Stein6fbc32cef390
diff --git a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryThumbnail.tsx b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryThumbnail.tsxindex 8be97e4d27..36922c7e31 100644--- a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryThumbnail.tsx+++ b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryThumbnail.tsx@@ -26,7 +26,7 @@ const THUMBNAIL_HOVER_CSS = {*/const THUMBNAIL_DRAG_CSS = {...THUMBNAIL_HOVER_CSS,- filter: 'saturate(0.4)',+ filter: 'saturate(0)',} as const;/**@@ -37,13 +37,13 @@ const THUMBNAIL_DRAG_CSS = {*/const THUMBNAIL_ARMED_CSS = {...THUMBNAIL_HOVER_CSS,- '&[data-drag-armed=true]': { filter: 'saturate(0.4)' },+ '&[data-drag-armed=true]': { filter: 'saturate(0)' },} as const;const PREVIEW_IMAGE_STYLE = {borderRadius: '0.375rem',boxShadow: '0 8px 24px rgb(0 0 0 / 45%)',- filter: 'saturate(0.4)',+ filter: 'saturate(0)',height: '100%',objectFit: 'cover',width: '100%',diff --git a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewFilmstrip.tsx b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewFilmstrip.tsxindex 25511dca2b..27acc4801b 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewFilmstrip.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewFilmstrip.tsx@@ -144,14 +144,14 @@ const FilmstripThumb = ({const FILMSTRIP_CONTAIN_CSS = { contain: 'inline-size' } as const;/** Same touch drag cue as the gallery grid: the source thumb desaturates while dragged. */-const FILMSTRIP_THUMB_DRAG_CSS = { filter: 'saturate(0.4)' } as const;+const FILMSTRIP_THUMB_DRAG_CSS = { filter: 'saturate(0)' } as const;/*** Same armed cue as the gallery grid: desaturation while a sustained touch* hold has armed the drag gate (before movement starts the drag). Set as* `data-drag-armed` by the hold-to-drag sensor.*/-const FILMSTRIP_THUMB_ARMED_CSS = { '&[data-drag-armed=true]': { filter: 'saturate(0.4)' } } as const;+const FILMSTRIP_THUMB_ARMED_CSS = { '&[data-drag-armed=true]': { filter: 'saturate(0)' } } as const;// The thumb row centers itself with `h="full"`, which needs the content// wrapper to actually span the viewport height rather than shrink to it.