mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): IAICustomSelect prevent label wrap
This commit is contained in:
parent
54b7ddd63f
commit
828c86964d
@ -90,9 +90,20 @@ const IAICustomSelect = (props: IAICustomSelectProps) => {
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
userSelect: 'none',
|
userSelect: 'none',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
|
overflow: 'hidden',
|
||||||
|
width: 'full',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Text
|
||||||
|
sx={{
|
||||||
|
fontSize: 'sm',
|
||||||
|
fontWeight: 500,
|
||||||
|
color: 'base.100',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
overflow: 'hidden',
|
||||||
|
textOverflow: 'ellipsis',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text sx={{ fontSize: 'sm', fontWeight: 500, color: 'base.100' }}>
|
|
||||||
{selectedItem}
|
{selectedItem}
|
||||||
</Text>
|
</Text>
|
||||||
</Select>
|
</Select>
|
||||||
@ -105,7 +116,6 @@ const IAICustomSelect = (props: IAICustomSelectProps) => {
|
|||||||
sx={{
|
sx={{
|
||||||
...floatingStyles,
|
...floatingStyles,
|
||||||
width: 'full',
|
width: 'full',
|
||||||
// width: 'max-content',
|
|
||||||
top: 0,
|
top: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
|
Loading…
Reference in New Issue
Block a user