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): keep focused mobile input at collapsed pill height (#6616)

Peter Chinmane4d29f844cf1
diff --git a/apps/web/src/features/channel/Input/Layout.module.css b/apps/web/src/features/channel/Input/Layout.module.css
index 419dd76682..049709bb8d 100644
--- a/apps/web/src/features/channel/Input/Layout.module.css
+++ b/apps/web/src/features/channel/Input/Layout.module.css
@@ -12,6 +12,19 @@
min-height: 48.75px;
padding: 7.5px;
--input-editor-padding: 4.6875px 3.75px;
+
+ /* On touch this row replaces the CollapsedInput pill, so it keeps the
+ pill's height, gutter, and gap (h-12.5, px-2, gap-1.5) rather than
+ growing when the editor takes over. The single line (with the
+ markdown theme's paragraph margins) is shorter than the row, so the
+ row centers it instead of padding around it. */
+ :global(html[data-touch-device='true']) & {
+ align-items: center;
+ gap: calc(var(--spacing) * 1.5);
+ min-height: calc(var(--spacing) * 12.5);
+ padding: 0 calc(var(--spacing) * 2);
+ --input-editor-padding: 0 calc(var(--spacing) * 1.5);
+ }
}
&[data-composer-compact='false'] {