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.

517 B
Raw Blame
import type { NarrowLayoutVariant } from './shared';

/**
 * Whether an email row uses the compact stacked layout: a narrow desktop list
 * in the `inbox` layout, such as Email beside its reading pane. Touch devices
 * keep their own email rows, with the sender's picture.
 */
export function usesCompactEmailRow(row: {
  wide: boolean;
  touch: boolean;
  narrowLayout: NarrowLayoutVariant | undefined;
  email: boolean;
}): boolean {
  return !row.wide && !row.touch && row.narrowLayout === 'inbox' && row.email;
}