Skip to content

Commit

Permalink
fix style issue of reply placeholder (#2181)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbura authored Jan 26, 2025
1 parent b524778 commit d5766b5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app/components/message/Reply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const ReplyLayout = as<'div', ReplyLayoutProps>(
<Box
className={classNames(css.Reply, className)}
alignItems="Center"
alignSelf="Start"
gap="100"
{...props}
ref={ref}
Expand All @@ -38,7 +37,7 @@ export const ReplyLayout = as<'div', ReplyLayoutProps>(
);

export const ThreadIndicator = as<'div'>(({ ...props }, ref) => (
<Box className={css.ThreadIndicator} alignItems="Center" alignSelf="Start" {...props} ref={ref}>
<Box className={css.ThreadIndicator} alignItems="Center" {...props} ref={ref}>
<Icon className={css.ThreadIndicatorIcon} src={Icons.Message} />
<Text size="T200">Threaded reply</Text>
</Box>
Expand Down Expand Up @@ -74,7 +73,7 @@ export const Reply = as<'div', ReplyProps>(
const bodyJSX = body ? scaleSystemEmoji(trimReplyFromBody(body)) : fallbackBody;

return (
<Box direction="Column" {...props} ref={ref}>
<Box direction="Column" alignItems="Start" {...props} ref={ref}>
{threadRootId && (
<ThreadIndicator as="button" data-event-id={threadRootId} onClick={onClick} />
)}
Expand All @@ -100,7 +99,7 @@ export const Reply = as<'div', ReplyProps>(
style={{
backgroundColor: color.SurfaceVariant.ContainerActive,
maxWidth: toRem(placeholderWidth),
width: '100%',
width: '100vw',
}}
/>
)}
Expand Down

0 comments on commit d5766b5

Please sign in to comment.