Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix[new-channels]: message spacing (#1950)

Peter Chinman3c0efcc38608
diff --git a/js/app/packages/channel/Message/ChannelMessage.tsx b/js/app/packages/channel/Message/ChannelMessage.tsx
index 37da724188..882c25ea45 100644
--- a/js/app/packages/channel/Message/ChannelMessage.tsx
+++ b/js/app/packages/channel/Message/ChannelMessage.tsx
@@ -85,7 +85,7 @@ function RegularMessageLayout(props: {
messageEditor?: MessageEditor;
}) {
return (
- <Message.Layout>
+ <Message.Layout class="pt-2">
<Message.Slot placement="icon">
<Message.SenderIcon />
</Message.Slot>
@@ -118,11 +118,11 @@ function GroupedMessageLayout(props: {
const isEditing = () => isEditingMessage(props.messageEditor, message().id);
return (
- <Message.Layout class="py-1">
+ <Message.Layout>
<Message.Slot placement="icon">
<Message.SenderIcon hidden />
</Message.Slot>
- <Message.Slot placement="content" class="mt-0.5">
+ <Message.Slot placement="content">
<div
class="flex gap-3 min-w-0"
classList={{
diff --git a/js/app/packages/channel/Message/Layout.tsx b/js/app/packages/channel/Message/Layout.tsx
index 92cddb893e..a6ef8dbdb9 100644
--- a/js/app/packages/channel/Message/Layout.tsx
+++ b/js/app/packages/channel/Message/Layout.tsx
@@ -5,7 +5,7 @@ export function Layout(props: JSX.HTMLAttributes<HTMLDivElement>) {
const [local, rest] = splitProps(props, ['class', 'children']);
return (
- <div class={cn('w-full p-2', local.class)} data-message-layout {...rest}>
+ <div class={cn('w-full px-2', local.class)} data-message-layout {...rest}>
<div
class="grid min-w-0 items-start gap-x-2"
style={{
diff --git a/js/app/packages/channel/Thread/ThreadRepliesContainer.tsx b/js/app/packages/channel/Thread/ThreadRepliesContainer.tsx
index b1e54134f3..99affd0998 100644
--- a/js/app/packages/channel/Thread/ThreadRepliesContainer.tsx
+++ b/js/app/packages/channel/Thread/ThreadRepliesContainer.tsx
@@ -4,7 +4,7 @@ import { threadOffsetX } from './utils/thread-rail-geometry';
export function ThreadRepliesContainer(props: ParentProps) {
return (
<div
- class="flex flex-col w-full pb-3"
+ class="flex flex-col w-full py-2"
style={{
'padding-left': threadOffsetX,
}}