File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
invokeai/frontend/web/src/features
modelManagerV2/subpanels/ModelManagerPanel Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,17 @@ const ModelImage = ({ image_url }: Props) => {
34
34
minHeight = { MODEL_IMAGE_THUMBNAIL_SIZE }
35
35
minWidth = { MODEL_IMAGE_THUMBNAIL_SIZE }
36
36
borderRadius = "base"
37
+ fallback = {
38
+ < Flex
39
+ height = { MODEL_IMAGE_THUMBNAIL_SIZE }
40
+ minWidth = { MODEL_IMAGE_THUMBNAIL_SIZE }
41
+ borderRadius = "base"
42
+ alignItems = "center"
43
+ justifyContent = "center"
44
+ >
45
+ < Icon color = "base.500" as = { PiImage } boxSize = { FALLBACK_ICON_SIZE } />
46
+ </ Flex >
47
+ }
37
48
/>
38
49
) ;
39
50
} ;
Original file line number Diff line number Diff line change @@ -413,6 +413,12 @@ const optionNameSx: SystemStyleObject = {
413
413
} ,
414
414
} ;
415
415
416
+ const optionDescriptionSx : SystemStyleObject = {
417
+ '&[data-is-compact="true"]' : {
418
+ color : 'base.800' ,
419
+ } ,
420
+ } ;
421
+
416
422
const PickerOptionComponent = typedMemo (
417
423
< T extends AnyModelConfig > ( { option, ...rest } : { option : WithStarred < T > } & BoxProps ) => {
418
424
const { $compactView } = usePickerContext < WithStarred < T > > ( ) ;
@@ -453,7 +459,11 @@ const PickerOptionComponent = typedMemo(
453
459
</ Text >
454
460
) }
455
461
</ Flex >
456
- { option . description && ! compactView && < Text color = "base.200" > { option . description } </ Text > }
462
+ { option . description && ! compactView && (
463
+ < Text sx = { optionDescriptionSx } data-is-compact = { compactView } >
464
+ { option . description }
465
+ </ Text >
466
+ ) }
457
467
</ Flex >
458
468
</ Flex >
459
469
) ;
You can’t perform that action at this time.
0 commit comments