mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Prod: drop the border of the last message instead of using a mt:-1 on the composer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user