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(empty states): reduce empty state top padding on mobile (#4613)

Aidan Holloway-Bidwell103c11b737c1
diff --git a/js/app/packages/ui/components/EmptyStatePanel.tsx b/js/app/packages/ui/components/EmptyStatePanel.tsx
index 4218f61016..0ec0d6ddd0 100644
--- a/js/app/packages/ui/components/EmptyStatePanel.tsx
+++ b/js/app/packages/ui/components/EmptyStatePanel.tsx
@@ -52,8 +52,10 @@ export function EmptyStatePanel(props: EmptyStatePanelProps) {
{/* A FIXED top spacer (not content-proportional) so the title lands on
the same baseline for every empty state, regardless of what's below
it. The graphic box has a fixed height too, so the title's vertical
- position is constant; the bottom grows to fill. */}
- <div aria-hidden="true" class="shrink-0 basis-[28%]" />
+ position is constant; the bottom grows to fill. On mobile the viewport
+ is short and the wrapper already adds a top inset, so the spacer is
+ reduced to keep content from overflowing the visible area. */}
+ <div aria-hidden="true" class="shrink-0 basis-[28%] mobile:basis-[8%]" />
<div
class={cn(
// Explicit vertical rhythm: a generous gap below the graphic, then a