CellWidth gets the current cell width for schema
()
| 51 | |
| 52 | // CellWidth gets the current cell width for schema |
| 53 | func (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 |
| 59 | func (m *TuiModel) GetBaseStyle() lipgloss.Style { |
no test coverage detected