(width: number)
| 24 | * so a small viewport never produces a panel that covers more than 60vw. |
| 25 | */ |
| 26 | export const clampPanelWidth = (width: number) => { |
| 27 | const max = getMaxLogDetailsWidth() |
| 28 | const min = Math.min(MIN_LOG_DETAILS_WIDTH, max) |
| 29 | return Math.max(min, Math.min(width, max)) |
| 30 | } |
no test coverage detected