mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
fix: update position constant in JoinHorizontal (#577)
This commit is contained in:
+2
-2
@@ -418,7 +418,7 @@ func (m Model) headersView() string {
|
|||||||
renderedCell := style.Render(runewidth.Truncate(col.Title, col.Width, "…"))
|
renderedCell := style.Render(runewidth.Truncate(col.Title, col.Width, "…"))
|
||||||
s = append(s, m.styles.Header.Render(renderedCell))
|
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 {
|
func (m *Model) renderRow(r int) string {
|
||||||
@@ -442,7 +442,7 @@ func (m *Model) renderRow(r int) string {
|
|||||||
s = append(s, renderedCell)
|
s = append(s, renderedCell)
|
||||||
}
|
}
|
||||||
|
|
||||||
row := lipgloss.JoinHorizontal(lipgloss.Left, s...)
|
row := lipgloss.JoinHorizontal(lipgloss.Top, s...)
|
||||||
|
|
||||||
if r == m.cursor {
|
if r == m.cursor {
|
||||||
return m.styles.Selected.Render(row)
|
return m.styles.Selected.Render(row)
|
||||||
|
|||||||
Reference in New Issue
Block a user