BlockPartPlaceholder: shrink

This commit is contained in:
Enrico Ros
2026-03-31 12:52:31 -07:00
parent db3a5c0b1b
commit a916ff46dc
@@ -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',