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(webv2): tighten the projects list with hairline dividers
joshistoastba0bee26fe60
diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/projects/ProjectRow.tsx b/invokeai/frontend/webv2/src/workbench/launchpad/projects/ProjectRow.tsxindex e2a51e9228..e9ff19d935 100644--- a/invokeai/frontend/webv2/src/workbench/launchpad/projects/ProjectRow.tsx+++ b/invokeai/frontend/webv2/src/workbench/launchpad/projects/ProjectRow.tsx@@ -56,7 +56,7 @@ export const ProjectRow = ({const handleTogglePin = useCallback(() => onTogglePin(summary.id), [onTogglePin, summary.id]);return (- <Row className="group" gap="3" position="relative" rounded="md" onContextMenu={handleContextMenu}>+ <Row className="group" gap="3" h="full" position="relative" rounded="md" onContextMenu={handleContextMenu}><Linkaria-label={t('projects.openProjectLabel', { name: summary.name })}search={projectSearch}diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/projects/ProjectsBrowser.tsx b/invokeai/frontend/webv2/src/workbench/launchpad/projects/ProjectsBrowser.tsxindex ff27db7efe..92870b2f16 100644--- a/invokeai/frontend/webv2/src/workbench/launchpad/projects/ProjectsBrowser.tsx+++ b/invokeai/frontend/webv2/src/workbench/launchpad/projects/ProjectsBrowser.tsx@@ -260,12 +260,11 @@ const VirtualProjectsRow = ({</SimpleGrid>) : (row.projects.map((project) => (- <ProjectRow- isPinned={pinnedIds.includes(project.id)}- key={project.id}- summary={project}- onTogglePin={onTogglePin}- />+ // The wrapper owns the virtualizer's full row pitch and the hairline+ // divider, so rows sit flush against each other.+ <Box borderBottomWidth="1px" borderColor="border.subtle" h={`${PROJECT_ROW_HEIGHT_PX}px`} key={project.id}>+ <ProjectRow isPinned={pinnedIds.includes(project.id)} summary={project} onTogglePin={onTogglePin} />+ </Box>)))}</Box>diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/projects/projectsMetrics.ts b/invokeai/frontend/webv2/src/workbench/launchpad/projects/projectsMetrics.tsindex 6f90bf921c..151bc2422b 100644--- a/invokeai/frontend/webv2/src/workbench/launchpad/projects/projectsMetrics.ts+++ b/invokeai/frontend/webv2/src/workbench/launchpad/projects/projectsMetrics.ts@@ -19,7 +19,12 @@ export const PROJECTS_GRID_GAP_PX = 16;/** `p="3"` around a name line and a timestamp line. */export const PROJECT_CARD_META_HEIGHT_PX = 60;-export const PROJECT_ROW_HEIGHT_PX = 52;+/**+ * List rows are contiguous — each fills its whole slot and draws a hairline+ * divider at the bottom, so this is the full row pitch: a 35px cover+ * (56px / 16:10) plus breathing room and the 1px divider.+ */+export const PROJECT_ROW_HEIGHT_PX = 44;export const PROJECT_GROUP_HEADER_HEIGHT_PX = 44;