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 != "" { 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 {