Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(comments): remove extra space below the new-comment composer (#6865)
gbirmand788bf4e93a1
diff --git a/apps/web/src/features/channel/Input/ChannelInput.tsx b/apps/web/src/features/channel/Input/ChannelInput.tsxindex d7ac17e81c..c7a23d17d0 100644--- a/apps/web/src/features/channel/Input/ChannelInput.tsx+++ b/apps/web/src/features/channel/Input/ChannelInput.tsx@@ -501,7 +501,13 @@ export function ChannelInput(props: ChannelInputProps) {};return (- <Input.Root input={inputState.view()} commands={commands}>+ <Input.Root+ input={inputState.view()}+ commands={commands}+ // An inline reply's bottom margin spaces it from the thread below; a+ // flat composer's host card already pads it.+ class={cn(props.flat && 'mb-0')}+ ><Show when={isCollapsed()}>{/* File picker opened from the CollapsedInput attach button. */}<inputdiff --git a/apps/web/src/features/channel/Input/tests/input-slots.test.tsx b/apps/web/src/features/channel/Input/tests/input-slots.test.tsxindex db5da996c6..a5b0e30232 100644--- a/apps/web/src/features/channel/Input/tests/input-slots.test.tsx+++ b/apps/web/src/features/channel/Input/tests/input-slots.test.tsx@@ -634,6 +634,21 @@ describe('Input slots', () => {expect(screen.getByText('Drop files to attach')).toBeTruthy();});++ it('drops the inline reply margin from a flat composer', () => {+ const replyInput: InputData = { ...baseInput, mode: 'reply' };+ const { container: inline } = render(() => (+ <ChannelInput input={replyInput} />+ ));+ const { container: flat } = render(() => (+ <ChannelInput input={replyInput} flat />+ ));++ expect(inline.querySelector('[data-input]')?.classList).toContain('mb-4');+ const flatRoot = flat.querySelector('[data-input]');+ expect(flatRoot?.classList).not.toContain('mb-4');+ expect(flatRoot?.classList).toContain('mb-0');+ });});/**