mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 19:07:41 +00:00
* feat(mobile): polish press feedback, sheet motion, states, spacing and layout jumps Every control presses and disables the same way, with one haptic rule. Sheets follow the finger and settle without bounce, pickers stack instead of swapping, and screens slide over a dimmed, shifted parent. Loading, empty, error and offline states share one view with plain-language errors, rows and labels line up on one grid, and screens stop jumping as data arrives. * fix(mobile): settle voice, tasks and accounts states; keep host snapshot current Voice settings with no paired desktop shows the connect state instead of loading forever. A failed task settings read after a successful probe retries hydration. The shared host-list snapshot drops on invalidation and ignores stale passes. Accounts shows a re-pair state on auth failure, and busy action-sheet rows keep their disabled state for screen readers.
15 lines
518 B
TypeScript
15 lines
518 B
TypeScript
import { spacing } from '../theme/mobile-theme'
|
|
|
|
const ROW_ACCENT_WIDTH = 2
|
|
const INDICATOR_WIDTH = 20
|
|
|
|
/** The workspace row's horizontal grid; section headers and separators line up with it. */
|
|
export const WORKTREE_ROW_LAYOUT = {
|
|
accentWidth: ROW_ACCENT_WIDTH,
|
|
/** Left edge of the status-dot column. */
|
|
indicatorInset: ROW_ACCENT_WIDTH + spacing.lg,
|
|
indicatorWidth: INDICATOR_WIDTH,
|
|
/** Where the row's text starts. */
|
|
textInset: ROW_ACCENT_WIDTH + spacing.lg + INDICATOR_WIDTH + spacing.sm
|
|
} as const
|