Skip to content

Commit 19a63ab

Browse files
fix(ui): hide file size on model picker when it is zero
1 parent 75ec36b commit 19a63ab

File tree

1 file changed

+5
-3
lines changed
  • invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion

1 file changed

+5
-3
lines changed

invokeai/frontend/web/src/features/settingsAccordions/components/GenerationSettingsAccordion/MainModelPicker.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,11 @@ const PickerOptionComponent = typedMemo(({ option, ...rest }: { option: AnyModel
411411
{option.name}
412412
</Text>
413413
<Spacer />
414-
<Text variant="subtext" fontStyle="italic" noOfLines={1} flexShrink={0} overflow="visible">
415-
{filesize(option.file_size)}
416-
</Text>
414+
{option.file_size > 0 && (
415+
<Text variant="subtext" fontStyle="italic" noOfLines={1} flexShrink={0} overflow="visible">
416+
{filesize(option.file_size)}
417+
</Text>
418+
)}
417419
</Flex>
418420
{option.description && !compactModelPicker && <Text color="base.200">{option.description}</Text>}
419421
</Flex>

0 commit comments

Comments
 (0)