Skip to main content

Module constants

Module constants 

Source
Expand description

Shared design constants: ellipses, layout breakpoints, spacing tokens.

These constants are the single source of truth for UI values that were previously scattered across multiple crates.

Constantsยง

COMPACT_MAX_COLS
Maximum column width for compact layout mode.
COMPACT_MAX_ROWS
Maximum row height for compact layout mode.
ELLIPSIS
Unicode ellipsis character as a string (\u{2026}).
ELLIPSIS_ASCII
Three-dot ASCII fallback ellipsis.
ELLIPSIS_CHAR
Unicode ellipsis character.
INLINE_PREVIEW_ELLIPSIS
Alias used by preview contexts. Delegates to ELLIPSIS.
SPACING_LOOSE
Loose spacing (4 cells).
SPACING_NORMAL
Normal spacing (2 cells).
SPACING_TIGHT
Tight spacing (1 cell).
WIDE_MIN_COLS
Minimum column width for wide layout mode.
WIDE_MIN_ROWS
Minimum row height for wide layout mode.