From b20c188ff75ac09d355441c99342f8fd353e6578 Mon Sep 17 00:00:00 2001 From: wheelibin Date: Sat, 31 Aug 2024 12:53:41 +0100 Subject: [PATCH 1/2] fix: set border top properly --- table/footer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table/footer.go b/table/footer.go index ba657a1..c68709c 100644 --- a/table/footer.go +++ b/table/footer.go @@ -19,7 +19,7 @@ func (m Model) renderFooter(width int, includeTop bool) string { styleFooter := m.baseStyle.Copy().Inherit(m.border.styleFooter).Width(width - borderAdjustment) if includeTop { - styleFooter.BorderTop(true) + styleFooter = styleFooter.BorderTop(true) } if m.staticFooter != "" { From 10fc91c7d6b29267e36494a574622953a18cce1f Mon Sep 17 00:00:00 2001 From: wheelibin Date: Sat, 31 Aug 2024 12:56:35 +0100 Subject: [PATCH 2/2] fix: broken overflow style --- table/overflow.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/table/overflow.go b/table/overflow.go index 1438290..19c5b0a 100644 --- a/table/overflow.go +++ b/table/overflow.go @@ -6,11 +6,7 @@ const columnKeyOverflowRight = "___overflow_r___" const columnKeyOverflowLeft = "___overflow_l__" func genOverflowStyle(base lipgloss.Style, width int) lipgloss.Style { - style := lipgloss.NewStyle().Width(width).Align(lipgloss.Right) - - style.Inherit(base) - - return style + return base.Width(width).Align(lipgloss.Right) } func genOverflowColumnRight(width int) Column {