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(preview): give the edit action the edit-on-canvas tooltip its siblings have
Josh Corbett08dab8d91258
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewActionStrip.tsx b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewActionStrip.tsxindex 79771da962..9535f9dbde 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewActionStrip.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewActionStrip.tsx@@ -101,16 +101,18 @@ export const PreviewActionStrip = ({destination, so it simply is not offered for them — the same guardthe context menu's image-only branch uses. */}{image ? (- <Button- aria-label={t('widgets.preview.editOnCanvas')}- color="fg.muted"- size="2xs"- variant="ghost"- onClick={editOnCanvas}- >- <Icon as={PencilIcon} boxSize="3.5" />- {t('common.edit')}- </Button>+ <Tooltip content={t('widgets.preview.editOnCanvas')}>+ <Button+ aria-label={t('widgets.preview.editOnCanvas')}+ color="fg.muted"+ size="2xs"+ variant="ghost"+ onClick={editOnCanvas}+ >+ <Icon as={PencilIcon} boxSize="3.5" />+ {t('common.edit')}+ </Button>+ </Tooltip>) : null}{starButton}{image ? <StripIconButton icon={ImagesIcon} label="Select for Compare" onClick={selectForCompare} /> : null}