Skip to content

Commit

Permalink
ChatMessage: fix broken overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed May 9, 2024
1 parent 2354cdc commit b9e3942
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/apps/chat/components/message/ChatMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/beam/scatter/BeamScatterInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit b9e3942

Please sign in to comment.