Remove unused box

This commit is contained in:
Nicola Benaglia 2025-05-26 21:45:18 +02:00
parent 342d68b248
commit 1eab69ddf6

View File

@ -324,6 +324,7 @@ export const MessageItem = memo(
{reply && ( {reply && (
<> <>
<Spacer height="20px" /> <Spacer height="20px" />
<Box <Box
sx={{ sx={{
backgroundColor: theme.palette.background.surface, backgroundColor: theme.palette.background.surface,
@ -339,15 +340,6 @@ export const MessageItem = memo(
scrollToItem(replyIndex); scrollToItem(replyIndex);
}} }}
> >
<Box
sx={{
background: theme.palette.text.primary,
height: '100%',
width: '5px',
flexShrink: 0,
}}
/>
<Box <Box
sx={{ sx={{
padding: '5px', padding: '5px',
@ -410,7 +402,6 @@ export const MessageItem = memo(
{reactions && {reactions &&
Object.keys(reactions).map((reaction) => { Object.keys(reactions).map((reaction) => {
const numberOfReactions = reactions[reaction]?.length; const numberOfReactions = reactions[reaction]?.length;
// const myReaction = reactions
if (numberOfReactions === 0) return null; if (numberOfReactions === 0) return null;
return ( return (
<ButtonBase <ButtonBase
@ -440,7 +431,6 @@ export const MessageItem = memo(
marginLeft: '4px', marginLeft: '4px',
}} }}
> >
{' '}
{numberOfReactions} {numberOfReactions}
</Typography> </Typography>
)} )}
@ -640,14 +630,6 @@ export const ReplyPreview = ({ message, isEdit = false }) => {
width: '100%', width: '100%',
}} }}
> >
<Box
sx={{
background: theme.palette.text.primary,
height: '100%',
width: '5px',
flexShrink: 0,
}}
/>
<Box <Box
sx={{ sx={{
padding: '5px', padding: '5px',