From 10fc91c7d6b29267e36494a574622953a18cce1f Mon Sep 17 00:00:00 2001 From: wheelibin Date: Sat, 31 Aug 2024 12:56:35 +0100 Subject: [PATCH] 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 {