(viewport)
| 21 | } |
| 22 | |
| 23 | export function resolveWidgetDemoLayout(viewport) { |
| 24 | const normalized = normalizeViewport(viewport); |
| 25 | const { cols, rows } = normalized; |
| 26 | if (cols <= TINY_MAX_COLS || rows <= TINY_MAX_ROWS) return "tiny"; |
| 27 | if (cols < FULL_MIN_COLS || rows < FULL_MIN_ROWS) return "compact"; |
| 28 | return "full"; |
| 29 | } |
no test coverage detected