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
style(webv2): keep the command palette footer on one line
Josh Corbett2109dd14a8b3
diff --git a/invokeai/frontend/webv2/src/workbench/palette/CommandPaletteDialog.tsx b/invokeai/frontend/webv2/src/workbench/palette/CommandPaletteDialog.tsxindex 8fdd20b29a..2b8ec16e04 100644--- a/invokeai/frontend/webv2/src/workbench/palette/CommandPaletteDialog.tsx+++ b/invokeai/frontend/webv2/src/workbench/palette/CommandPaletteDialog.tsx@@ -24,14 +24,15 @@ const ENTER_HINT_KEYS = ['↵'];const ESC_HINT_KEYS = ['esc'];const TAB_HINT_KEYS = ['tab'];-const FooterHint = ({ children, keys }: { children: string; keys: string[] }) => (- <HStack gap="1">+/** Hints never wrap; a `shrink` hint truncates its label when a long translation leaves no room. */+const FooterHint = ({ children, keys, shrink = false }: { children: string; keys: string[]; shrink?: boolean }) => (+ <HStack flexShrink={shrink ? 1 : 0} gap="1" minW="0">{keys.map((key) => (- <Kbd key={key} size="sm" textTransform="lowercase">+ <Kbd key={key} flexShrink={0} size="sm" textTransform="lowercase">{key}</Kbd>))}- <Text>{children}</Text>+ <Text truncate>{children}</Text></HStack>);@@ -145,7 +146,7 @@ const CommandPaletteContent = ({overflow="hidden"overscrollBehavior="contain"p="0"- w="min(560px, calc(100vw - 32px))"+ w="min(640px, calc(100vw - 32px))"onKeyDown={controller.onContentKeyDown}><Dialog.Title srOnly>{t('commandPalette.title')}</Dialog.Title>@@ -262,7 +263,9 @@ const CommandPaletteContent = ({{controller.stage ? t('commandPalette.footer.pick') : t('commandPalette.footer.run')}</FooterHint>{controller.secondaryHint ? (- <FooterHint keys={modEnterHintKeys}>{controller.secondaryHint}</FooterHint>+ <FooterHint keys={modEnterHintKeys} shrink>+ {controller.secondaryHint}+ </FooterHint>) : null}{controller.hasScopeRows || controller.activeRow?.kind === 'scope' ? (<FooterHint keys={TAB_HINT_KEYS}>{t('commandPalette.footer.scope')}</FooterHint>