fix: update position constant in JoinHorizontal (#577)

This commit is contained in:
Aditi Patel
2024-08-07 14:06:50 -04:00
committed by GitHub
parent 0368f4300e
commit 6202df1306
+2 -2
View File
@@ -418,7 +418,7 @@ func (m Model) headersView() string {
renderedCell := style.Render(runewidth.Truncate(col.Title, col.Width, "…"))
s = append(s, m.styles.Header.Render(renderedCell))
}
return lipgloss.JoinHorizontal(lipgloss.Left, s...)
return lipgloss.JoinHorizontal(lipgloss.Top, s...)
}
func (m *Model) renderRow(r int) string {
@@ -442,7 +442,7 @@ func (m *Model) renderRow(r int) string {
s = append(s, renderedCell)
}
row := lipgloss.JoinHorizontal(lipgloss.Left, s...)
row := lipgloss.JoinHorizontal(lipgloss.Top, s...)
if r == m.cursor {
return m.styles.Selected.Render(row)