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(channel): List is reversed for a small number of messages (#788)

dev-rb5431728f9832
diff --git a/js/app/packages/block-channel/component/MessageList/MessageList.tsx b/js/app/packages/block-channel/component/MessageList/MessageList.tsx
index 1879e27cab..c9eb792667 100644
--- a/js/app/packages/block-channel/component/MessageList/MessageList.tsx
+++ b/js/app/packages/block-channel/component/MessageList/MessageList.tsx
@@ -749,7 +749,7 @@ function MessageListImpl(props: MessageListProps) {
}}
style={{
'max-height': `${listHeight()}px`,
- height: 'fit-content',
+ height: '100%',
contain: 'none',
'overflow-x': 'hidden',
'overflow-y': 'scroll',
@@ -757,7 +757,7 @@ function MessageListImpl(props: MessageListProps) {
display: 'flex',
'flex-direction': 'column-reverse',
}}
- class="scrollbar-hidden"
+ class="scrollbar-hidden [&>div]:mb-auto"
data-channel-message-list
data={rows() ?? []}
shift={isPrepend()}