--- // ComparisonTable — horizontal-scroll wrapper for wide comparison tables. // Used by /models/ and /rules/ pages where tables become unreadable on a // phone without horizontal scroll. // // The pattern from chapters.css and full-guide/audit.css: //
// ...
//
// with `.table-wrap { overflow-x: auto }`. // // Callers pass the table via the default slot; the wrapper class adds the // scroll behaviour and hairline border so the wrapper itself looks // intentional, not like an overflow leak. interface Props { /** Minimum width on the inner table. Forces horizontal scroll below this * width rather than squashing columns into illegibility. */ minWidth?: string; } const { minWidth = '640px' } = Astro.props; ---