Prod: drop the border of the last message instead of using a mt:-1 on the composer

This commit is contained in:
Enrico Ros
2025-05-13 02:03:14 -07:00
parent bab7afdfba
commit 6118d0f940
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ const composerOpenSx: SxProps = {
borderTop: `1px solid`,
borderTopColor: 'rgba(var(--joy-palette-neutral-mainChannel, 99 107 116) / 0.4)',
// hack: eats the bottom of the last message (as it has a 1px divider)
mt: '-1px',
// mt: '-1px',
};
const composerClosedSx: SxProps = {
@@ -576,7 +576,7 @@ export function ChatMessage(props: {
// filter: 'url(#agi-futuristic-glow)',
// style: omit border if set externally
...(!('borderBottom' in (props.sx || {})) && {
...(!('borderBottom' in (props.sx || {})) && !props.isBottom && {
borderBottom: '1px solid',
borderBottomColor: 'divider',
}),
@@ -623,7 +623,7 @@ export function ChatMessage(props: {
display: 'block', // this is Needed, otherwise there will be a horizontal overflow
...props.sx,
}), [adjContentScaling, backgroundColor, isEditingText, isUserMessageSkipped, isUserStarred, isVndAndCacheAuto, isVndAndCacheUser, props.sx, uiComplexityMode]);
}), [adjContentScaling, backgroundColor, isEditingText, isUserMessageSkipped, isUserStarred, isVndAndCacheAuto, isVndAndCacheUser, props.isBottom, props.sx, uiComplexityMode]);
// avatar icon & label & tooltip