mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): style model picker selected item
This commit is contained in:
committed by
Kent Keirsey
parent
c391f1117a
commit
a7c7405ccc
@@ -372,7 +372,11 @@ const optionSx: SystemStyleObject = {
|
||||
cursor: 'pointer',
|
||||
borderRadius: 'base',
|
||||
'&[data-selected="true"]': {
|
||||
bg: 'base.700',
|
||||
bg: 'invokeBlue.300',
|
||||
color: 'base.900',
|
||||
'.extra-info': {
|
||||
color: 'base.700',
|
||||
},
|
||||
'.picker-option': {
|
||||
fontWeight: 'bold',
|
||||
'&[data-is-compact="true"]': {
|
||||
@@ -380,7 +384,7 @@ const optionSx: SystemStyleObject = {
|
||||
},
|
||||
},
|
||||
'&[data-active="true"]': {
|
||||
bg: 'base.650',
|
||||
bg: 'invokeBlue.250',
|
||||
},
|
||||
},
|
||||
'&[data-active="true"]': {
|
||||
@@ -422,12 +426,26 @@ const PickerOptionComponent = typedMemo(
|
||||
</Text>
|
||||
<Spacer />
|
||||
{option.file_size > 0 && (
|
||||
<Text variant="subtext" fontStyle="italic" noOfLines={1} flexShrink={0} overflow="visible">
|
||||
<Text
|
||||
className="extra-info"
|
||||
variant="subtext"
|
||||
fontStyle="italic"
|
||||
noOfLines={1}
|
||||
flexShrink={0}
|
||||
overflow="visible"
|
||||
>
|
||||
{filesize(option.file_size)}
|
||||
</Text>
|
||||
)}
|
||||
{option.usage_info && (
|
||||
<Text variant="subtext" fontStyle="italic" noOfLines={1} flexShrink={0} overflow="visible">
|
||||
<Text
|
||||
className="extra-info"
|
||||
variant="subtext"
|
||||
fontStyle="italic"
|
||||
noOfLines={1}
|
||||
flexShrink={0}
|
||||
overflow="visible"
|
||||
>
|
||||
{option.usage_info}
|
||||
</Text>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user