mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): hide file size on model picker when it is zero
This commit is contained in:
@@ -411,9 +411,11 @@ const PickerOptionComponent = typedMemo(({ option, ...rest }: { option: AnyModel
|
||||
{option.name}
|
||||
</Text>
|
||||
<Spacer />
|
||||
<Text variant="subtext" fontStyle="italic" noOfLines={1} flexShrink={0} overflow="visible">
|
||||
{filesize(option.file_size)}
|
||||
</Text>
|
||||
{option.file_size > 0 && (
|
||||
<Text variant="subtext" fontStyle="italic" noOfLines={1} flexShrink={0} overflow="visible">
|
||||
{filesize(option.file_size)}
|
||||
</Text>
|
||||
)}
|
||||
</Flex>
|
||||
{option.description && !compactModelPicker && <Text color="base.200">{option.description}</Text>}
|
||||
</Flex>
|
||||
|
||||
Reference in New Issue
Block a user