MCPcopy
hub / github.com/mathaou/termdbms / setSize

Method setSize

list/list.go:558–566  ·  view source on GitHub ↗
(width, height int)

Source from the content-addressed store, hash-verified

556}
557
558func (m *Model) setSize(width, height int) {
559 promptWidth := lipgloss.Width(m.Styles.Title.Render(m.FilterInput.Prompt))
560
561 m.width = width
562 m.height = height
563 m.Help.Width = width
564 m.FilterInput.Width = width - promptWidth - lipgloss.Width(m.spinnerView())
565 m.updatePagination()
566}
567
568func (m *Model) resetFiltering() {
569 if m.filterState == Unfiltered {

Callers 3

SetSizeMethod · 0.95
SetWidthMethod · 0.95
SetHeightMethod · 0.95

Calls 4

spinnerViewMethod · 0.95
updatePaginationMethod · 0.95
WidthMethod · 0.80
RenderMethod · 0.65

Tested by

no test coverage detected