ChatMessage: fix broken overflow

This commit is contained in:
Enrico Ros
2024-04-25 10:45:51 -07:00
parent 2354cdc1d1
commit b9e3942ed8
2 changed files with 2 additions and 3 deletions
@@ -556,8 +556,7 @@ export function ChatMessage(props: {
'&:hover > button': { opacity: 1 },
// layout
display: 'grid',
gap: 1,
display: 'block', // this is Needed, otherwise there will be a horizontal overflow
...props.sx,
}}
@@ -71,7 +71,7 @@ export function BeamScatterInput(props: {
const userMessageDecorator = React.useMemo(() => {
return (/*showHistoryMessage &&*/ otherHistoryCount >= 1 && scatterShowPrevMessages) ? (
// <Chip color='primary' variant='outlined' endDecorator={<ChipDelete />} sx={{ my: 1 }}>
<Typography level='body-xs' sx={{ my: 1, mx: 'auto', color: 'neutral.softColor' }} onClick={undefined /*() => setShowHistoryMessage(on => !on)*/}>
<Typography level='body-xs' sx={{ my: 1, textAlign: 'center', color: 'neutral.softColor' }} onClick={undefined /*() => setShowHistoryMessage(on => !on)*/}>
... {otherHistoryCount === 1 ? (isFirstMessageSystem ? '1 system message' : '1 message') : `${otherHistoryCount} messages`} before this one ...
</Typography>
// </Chip>