mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
BlockPartPlaceholder: shrink
This commit is contained in:
@@ -143,15 +143,15 @@ function RenderChipAixControl({ aixControl, text }: {
|
||||
size='sm'
|
||||
color={color}
|
||||
variant='soft'
|
||||
startDecorator={!startText ? undefined : <div style={{ opacity: 0.75, textWrap: 'nowrap' }}>{startText}</div>}
|
||||
endDecorator={!Icon ? undefined : <Icon style={{ opacity: 0.5 }} />}
|
||||
startDecorator={startText ? <div style={{ opacity: 0.75, textWrap: 'nowrap' }}>{startText}</div> : Icon ? <Icon style={{ opacity: 0.75 }} /> : undefined}
|
||||
sx={{
|
||||
mx: 1.5, // usual, esp for the looks into Beam
|
||||
gap: 1.5,
|
||||
px: 1.5,
|
||||
py: 0.375,
|
||||
my: '1px', // to not crop the outline on mobile, or on beam
|
||||
boxShadow: `1px 2px 4px -3px var(--joy-palette-${color}-solidBg)`,
|
||||
boxShadow: `inset 1px 2px 2px -1px var(--joy-palette-${color}-outlinedBorder)`,
|
||||
// outline: `1px solid var(--joy-palette-${color}-outlinedBorder)`,
|
||||
// wrap text if needed - introduced for retry error messages
|
||||
whiteSpace: 'normal',
|
||||
wordBreak: 'break-word',
|
||||
|
||||
Reference in New Issue
Block a user