detailsDialogSize returns the outer width and height of the YAML dialog, clamped so it always fits on screen with a small margin.
()
| 400 | // detailsDialogSize returns the outer width and height of the YAML dialog, |
| 401 | // clamped so it always fits on screen with a small margin. |
| 402 | func (m *agentPickerModel) detailsDialogSize() (w, h int) { |
| 403 | w = min(detailsDialogWidth, max(m.width-4, 20)) |
| 404 | h = min(detailsDialogHeight, max(m.height-2, detailsChromeRows+1)) |
| 405 | return w, h |
| 406 | } |
| 407 | |
| 408 | // viewportSize returns the inner content dimensions of the YAML viewport. |
| 409 | func (m *agentPickerModel) viewportSize() (w, h int) { |
no outgoing calls
no test coverage detected