Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(channel): tighten conversation side padding to 16px (#22562)

Arvin Xue12cd9a206b4
diff --git a/src/components/Skeleton/Channel.tsx b/src/components/Skeleton/Channel.tsx
index f4cdde77ae2..46b3e84b741 100644
--- a/src/components/Skeleton/Channel.tsx
+++ b/src/components/Skeleton/Channel.tsx
@@ -62,12 +62,12 @@ const MessageRowSkeleton = ({ lines, name }: (typeof MESSAGE_ROWS)[number]) => (
*/
export const ChannelConversationSkeleton = () => (
<div aria-busy {...stylex.props(styles.root)}>
- <Flexbox flex={1} paddingBlock={'16px 24px'} paddingInline={24} style={{ minHeight: 0 }}>
+ <Flexbox flex={1} paddingBlock={'16px 24px'} paddingInline={16} style={{ minHeight: 0 }}>
{MESSAGE_ROWS.map((row, index) => (
<MessageRowSkeleton key={index} {...row} />
))}
</Flexbox>
- <Flexbox flex={'none'} gap={4} paddingBlock={'0 12px'} paddingInline={24}>
+ <Flexbox flex={'none'} gap={4} paddingBlock={'0 12px'} paddingInline={16}>
<Flexbox height={24} />
<Flexbox
horizontal
diff --git a/src/features/Channels/ArchivedNotice.tsx b/src/features/Channels/ArchivedNotice.tsx
index 39abf5694fa..d39c0670f92 100644
--- a/src/features/Channels/ArchivedNotice.tsx
+++ b/src/features/Channels/ArchivedNotice.tsx
@@ -36,7 +36,7 @@ export function ArchivedNotice({
};
return (
- <WideScreenContainer fullWidth paddingInline={24}>
+ <WideScreenContainer fullWidth paddingInline={16}>
<div role="status" {...stylex.props(styles.archivedNotice)}>
<Flexbox horizontal align="center" gap={8} style={{ minWidth: 0 }}>
<Icon icon={Archive} size={16} />
diff --git a/src/features/Channels/ChannelConversation.tsx b/src/features/Channels/ChannelConversation.tsx
index b33b4893575..dbe4e908115 100644
--- a/src/features/Channels/ChannelConversation.tsx
+++ b/src/features/Channels/ChannelConversation.tsx
@@ -163,7 +163,7 @@ const Timeline = ({
}}
{...stylex.props(styles.feed)}
>
- <WideScreenContainer fullWidth paddingInline={24}>
+ <WideScreenContainer fullWidth paddingInline={16}>
{(detail.hasMore || before !== undefined) && (
<Flexbox horizontal align="center" gap={8} justify="center" paddingBlock={8}>
<Button
diff --git a/src/features/Channels/Composer.tsx b/src/features/Channels/Composer.tsx
index 7d478931c0f..04c41eb5b30 100644
--- a/src/features/Channels/Composer.tsx
+++ b/src/features/Channels/Composer.tsx
@@ -241,7 +241,7 @@ export function Composer({
</Flexbox>
);
return (
- <WideScreenContainer fullWidth paddingInline={24}>
+ <WideScreenContainer fullWidth paddingInline={16}>
<Flexbox {...stylex.props(styles.composer)} gap={4} {...getContainerProps()}>
<div {...stylex.props(styles.composerStatus)}>
<Flexbox horizontal align="center" style={{ minWidth: 0 }}>
diff --git a/src/features/Channels/DraftThreadConversation.tsx b/src/features/Channels/DraftThreadConversation.tsx
index c7bdfbccccc..67508f08781 100644
--- a/src/features/Channels/DraftThreadConversation.tsx
+++ b/src/features/Channels/DraftThreadConversation.tsx
@@ -36,7 +36,7 @@ export function DraftThreadConversation({
>
<Flexbox {...stylex.props(styles.body)}>
<Flexbox aria-label={t('thread')} {...stylex.props(styles.feed)}>
- <WideScreenContainer fullWidth paddingInline={24}>
+ <WideScreenContainer fullWidth paddingInline={16}>
<ThreadRootMessage
detail={{ ...detail, attachments: draft.attachments }}
root={draft.root}