Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

476 B
Raw Blame
export const DEFAULT_CHAT_MESSAGE_FONT_SIZE = 14;
export const MIN_CHAT_MESSAGE_FONT_SIZE = 12;
export const MAX_CHAT_MESSAGE_FONT_SIZE = 20;

export function normalizeChatMessageFontSize(value: unknown): number {
  const numeric = typeof value === 'number' ? value : Number(value);
  if (!Number.isFinite(numeric)) return DEFAULT_CHAT_MESSAGE_FONT_SIZE;
  return Math.max(
    MIN_CHAT_MESSAGE_FONT_SIZE,
    Math.min(MAX_CHAT_MESSAGE_FONT_SIZE, Math.round(numeric)),
  );
}