Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

600 B
Raw Blame
export function resolveMarkdownFloatingActionsBottom({
  keyboardLift,
  restingBottom,
  liftedClearance
}: {
  keyboardLift: number
  restingBottom: number
  liftedClearance: number
}): number {
  return keyboardLift > 0 ? keyboardLift + liftedClearance : restingBottom
}

export function shouldShowMarkdownFloatingActions({
  keyboardLift,
  hasStatus,
  showRefresh,
  showCopy,
  showSave
}: {
  keyboardLift: number
  hasStatus: boolean
  showRefresh: boolean
  showCopy: boolean
  showSave: boolean
}): boolean {
  return keyboardLift > 0 || hasStatus || showRefresh || showCopy || showSave
}