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): static spacing (#2249)

teo28e7462958ca
diff --git a/js/app/packages/channel/Thread/ThreadTypingIndicator.tsx b/js/app/packages/channel/Thread/ThreadTypingIndicator.tsx
index 58aa61c57e..5694ba67ab 100644
--- a/js/app/packages/channel/Thread/ThreadTypingIndicator.tsx
+++ b/js/app/packages/channel/Thread/ThreadTypingIndicator.tsx
@@ -21,9 +21,11 @@ export function ThreadTypingIndicator(props: ThreadTypingIndicatorProps) {
const isActive = () => typingUsers().length > 0;
return (
- <Show when={isActive()}>
- <ThreadTypingIndicatorContent text={typingText()} />
- </Show>
+ <div class="flex flex-row items-stretch justify-start ml-[var(--left-of-connector)] min-h-7">
+ <Show when={isActive()}>
+ <ThreadTypingIndicatorContent text={typingText()} />
+ </Show>
+ </div>
);
}
@@ -35,13 +37,13 @@ function ThreadTypingIndicatorContent(
props: ThreadTypingIndicatorContentProps
) {
return (
- <div class="flex flex-row items-stretch justify-start ml-[var(--left-of-connector)] min-h-7">
+ <>
<ThreadTypingIndicatorConnector />
<div class="text-xs text-panel uppercase font-mono px-1 py-0.5 my-1 bg-edge flex items-center gap-1">
<ThreadTypingIndicatorDots />
<span>{props.text}</span>
</div>
- </div>
+ </>
);
}
diff --git a/js/app/packages/channel/docs/sticky-scrolling.md b/js/app/packages/channel/docs/sticky-scrolling.md
new file mode 100644
index 0000000000..0fa31e7a1c
--- /dev/null
+++ b/js/app/packages/channel/docs/sticky-scrolling.md
@@ -0,0 +1,9 @@
+# Sticky Scrolling
+
+"Sticky Scrolling" in channels is a mechanism that should keep the content relating to the bottom-most (no remaining pagination) of a channel in view.
+
+The following are cases where sticky scrolling should be applied.
+
+1. I am at the bottom of a channel (approximately) within some threshold. I receive a new message, either from myself or from another user, that message should be in view. To accomplish this we need to scroll down to the newest message.
+2. I am at the bottom of a channel, I or anyone else in the channel react to the latest message, I should be scrolled slightly so that reaction is in view.
+3. I am at the bottom of a channel, I hit "reply" on the latest message. The entirety of the reply input box should be visible to me.