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

Method CellWidth

viewer/tableutil.go:53–56  ·  view source on GitHub ↗

CellWidth gets the current cell width for schema

()

Source from the content-addressed store, hash-verified

51
52// CellWidth gets the current cell width for schema
53func (m *TuiModel) CellWidth() int {
54 h := m.NumHeaders()
55 return m.Viewport.Width/h + 2
56}
57
58// GetBaseStyle returns a new style that is used everywhere
59func (m *TuiModel) GetBaseStyle() lipgloss.Style {

Callers 5

GetBaseStyleMethod · 0.95
GetColumnMethod · 0.95
initFunction · 0.80
TruncateIfApplicableFunction · 0.80
SelectOptionFunction · 0.80

Calls 1

NumHeadersMethod · 0.95

Tested by

no test coverage detected