mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-01-29 01:28:29 +00:00
fix style issue of reply placeholder
This commit is contained in:
parent
b524778039
commit
11024dbc93
|
@ -21,7 +21,6 @@ export const ReplyLayout = as<'div', ReplyLayoutProps>(
|
||||||
<Box
|
<Box
|
||||||
className={classNames(css.Reply, className)}
|
className={classNames(css.Reply, className)}
|
||||||
alignItems="Center"
|
alignItems="Center"
|
||||||
alignSelf="Start"
|
|
||||||
gap="100"
|
gap="100"
|
||||||
{...props}
|
{...props}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
|
@ -38,7 +37,7 @@ export const ReplyLayout = as<'div', ReplyLayoutProps>(
|
||||||
);
|
);
|
||||||
|
|
||||||
export const ThreadIndicator = as<'div'>(({ ...props }, ref) => (
|
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} />
|
<Icon className={css.ThreadIndicatorIcon} src={Icons.Message} />
|
||||||
<Text size="T200">Threaded reply</Text>
|
<Text size="T200">Threaded reply</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
@ -74,7 +73,7 @@ export const Reply = as<'div', ReplyProps>(
|
||||||
const bodyJSX = body ? scaleSystemEmoji(trimReplyFromBody(body)) : fallbackBody;
|
const bodyJSX = body ? scaleSystemEmoji(trimReplyFromBody(body)) : fallbackBody;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box direction="Column" {...props} ref={ref}>
|
<Box direction="Column" alignItems="Start" {...props} ref={ref}>
|
||||||
{threadRootId && (
|
{threadRootId && (
|
||||||
<ThreadIndicator as="button" data-event-id={threadRootId} onClick={onClick} />
|
<ThreadIndicator as="button" data-event-id={threadRootId} onClick={onClick} />
|
||||||
)}
|
)}
|
||||||
|
@ -100,7 +99,7 @@ export const Reply = as<'div', ReplyProps>(
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: color.SurfaceVariant.ContainerActive,
|
backgroundColor: color.SurfaceVariant.ContainerActive,
|
||||||
maxWidth: toRem(placeholderWidth),
|
maxWidth: toRem(placeholderWidth),
|
||||||
width: '100%',
|
width: '100vw',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue