Skip to content

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.

style(layers): polish layer list interactions

joshistoastfde10b76c8bb
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsx
index 4d11c90a0e..16fe6408e0 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsx
@@ -147,7 +147,7 @@ export const LayerGroupSection = ({
onDragEnd={handleDragEnd}
>
<SortableContext items={groupIds} strategy={verticalListSortingStrategy}>
- <Stack gap="1">
+ <Stack gap="0.5">
{groupLayers.map((layer) => (
<LayerListItem
key={layer.id}
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerListItem.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerListItem.tsx
index 203cb8dff5..eb4865d3e4 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerListItem.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerListItem.tsx
@@ -130,7 +130,7 @@ export const LayerListItem = ({ dispatch, engine, index, isSelected, layer, laye
{...attributes}
{...listeners}
active={isSelected ? 'muted' : undefined}
- cursor="grab"
+ cursor={isDragging ? 'grabbing' : 'default'}
display="flex"
gap="1.5"
p="1.5"