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.

326 B
Raw Blame
type SafeAreaInsetSide = 'top' | 'right' | 'bottom' | 'left';

export function getSafeAreaInset(side: SafeAreaInsetSide): number {
  const value = getComputedStyle(document.documentElement).getPropertyValue(
    `--safe-${side}`
  );
  const pixels = Number.parseFloat(value);
  return Number.isFinite(pixels) ? pixels : 0;
}