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(ui): presets trigger squareness, row hairlines, brand tab icon, starred rule centering
Josh Corbettdf23447e6f9e
diff --git a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsx b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsxindex 8a369b870b..acac399612 100644--- a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsx+++ b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsx@@ -494,6 +494,10 @@ export const GalleryImageGrid = () => {align="center"h={`${GALLERY_STARRED_SEPARATOR_HEIGHT_PX}px`}left="0"+ // The starred row above already carries its trailing grid+ // gap; centering over the remaining height keeps the rule+ // equidistant from both thumbnail edges.+ pb={`${GALLERY_GRID_GAP_PX}px`}position="absolute"top="0"transform={`translateY(${virtualRow.start}px)`}diff --git a/invokeai/frontend/webv2/src/features/generation/ui/GeneratePresetsPopover.tsx b/invokeai/frontend/webv2/src/features/generation/ui/GeneratePresetsPopover.tsxindex 8f7c297767..d531d231de 100644--- a/invokeai/frontend/webv2/src/features/generation/ui/GeneratePresetsPopover.tsx+++ b/invokeai/frontend/webv2/src/features/generation/ui/GeneratePresetsPopover.tsx@@ -1,7 +1,7 @@import type { GenerateSettings } from '@features/generation/core/types';import type { ChangeEvent } from 'react';-import { HStack, Icon, Input, InputGroup, Popover, Portal, Stack, Text } from '@chakra-ui/react';+import { HStack, Icon, Input, InputGroup, Popover, Portal, Separator, Stack, Text } from '@chakra-ui/react';import {getGenerateModelSelectionResult,isSupportedGenerateModel,@@ -34,6 +34,7 @@ const POPOVER_POSITIONING = { placement: 'bottom-end' } as const;const SEARCH_START_ELEMENT = <Icon as={SearchIcon} boxSize="3" color="fg.subtle" />;// The rows sit on the popover's `bg.muted` surface; hover one surface step up.const PRESET_ROW_HOVER_PROPS = { bg: 'bg.emphasized/60' };+const PRESET_ROW_SEPARATOR = <Separator borderColor="border.subtle" />;/** Below this many presets, a search box is more furniture than help. */const SEARCH_VISIBLE_MIN_PRESETS = 6;@@ -282,10 +283,10 @@ export const GeneratePresetsPopover = () => {<IconButtonaria-label={triggerLabel}color="fg.muted"- px={activePreset ? '1' : undefined}+ px={activePreset ? '1' : '0'}size="2xs"variant="ghost"- w={activePreset ? 'auto' : undefined}+ w={activePreset ? 'auto' : '6'}><Icon as={BookmarkIcon} boxSize="3.5" />{activePreset ? (@@ -334,7 +335,7 @@ export const GeneratePresetsPopover = () => {</Text>) : (<Scrollable maxH="16rem">- <Stack gap="0.5">+ <Stack gap="0.5" separator={PRESET_ROW_SEPARATOR}>{filteredPresets.map((preset) => (<PresetRowkey={preset.id}diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/LayoutPresetStrip.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/LayoutPresetStrip.tsxindex dff3917bff..2241b675f5 100644--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/LayoutPresetStrip.tsx+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/LayoutPresetStrip.tsx@@ -382,7 +382,7 @@ const PresetTab = ({onPointerDown={handlePointerDown}onPointerEnter={handlePreload}>- <Icon as={icon} boxSize="3.5" flexShrink={0} />+ <Icon as={icon} boxSize="3.5" color={isActive ? 'brand.fg' : undefined} flexShrink={0} /><Text as="span" css={HIDE_BELOW_PRESET_LABEL_WIDTH}>{preset.label}</Text>