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.

fix(nodes): preserve label descenders

joshistoastf48f794f8e51
diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/nodes/detail/NodePreviewCard.tsx b/invokeai/frontend/webv2/src/workbench/launchpad/nodes/detail/NodePreviewCard.tsx
index 63317ca02b..b9435c50af 100644
--- a/invokeai/frontend/webv2/src/workbench/launchpad/nodes/detail/NodePreviewCard.tsx
+++ b/invokeai/frontend/webv2/src/workbench/launchpad/nodes/detail/NodePreviewCard.tsx
@@ -71,13 +71,13 @@ const FieldTooltip = ({
};
const OutputRow = ({ template }: { template: FieldOutputTemplate }) => (
- <Box position="relative" px="3" py="1">
+ <Box position="relative" px="3" py="0.5">
<Tooltip
content={<FieldTooltip description={template.description} direction="output" template={template} />}
positioning={{ placement: 'top-end' }}
>
<Flex justify="flex-end">
- <Text color="fg.muted" fontSize="2xs" lineHeight="1" maxW="full" textAlign="end" truncate>
+ <Text color="fg.muted" fontSize="2xs" lineHeight="shorter" maxW="full" textAlign="end" truncate>
{template.title}
</Text>
</Flex>
@@ -87,12 +87,12 @@ const OutputRow = ({ template }: { template: FieldOutputTemplate }) => (
);
const InputRow = ({ template }: { template: FieldInputTemplate }) => (
- <Box position="relative" px="3" py="1">
+ <Box position="relative" px="3" py="0.5">
<Tooltip
content={<FieldTooltip description={template.description} direction="input" template={template} />}
positioning={{ placement: 'top-start' }}
>
- <Text color="fg" fontSize="2xs" lineHeight="1" minW="0" truncate>
+ <Text color="fg" fontSize="2xs" lineHeight="shorter" minW="0" truncate>
{template.title}
{template.required ? (
<Text as="span" color="fg.error">
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/workflow/editor/InvocationFlowNode.tsx b/invokeai/frontend/webv2/src/workbench/widgets/workflow/editor/InvocationFlowNode.tsx
index f3eb18f77e..28f70b3f5d 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/workflow/editor/InvocationFlowNode.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/workflow/editor/InvocationFlowNode.tsx
@@ -410,7 +410,7 @@ const InputFieldRow = ({
<Text
color={isInvalid ? 'fg.error' : isConnected ? 'fg.muted' : 'fg'}
fontSize="2xs"
- lineHeight="1"
+ lineHeight="shorter"
minW="0"
truncate
>
@@ -522,7 +522,7 @@ const OutputFieldRow = ({ isSkeleton, template }: { isSkeleton: boolean; templat
color="fg.muted"
display="inline-block"
fontSize="2xs"
- lineHeight="1"
+ lineHeight="shorter"
maxW="full"
textAlign="end"
truncate