mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
ChatMessage: fix broken overflow
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user