From 643069bbbb8eacf4dadefd11778c71d9382c6b50 Mon Sep 17 00:00:00 2001 From: omartelo Date: Fri, 30 Oct 2026 18:14:51 -0300 Subject: [PATCH] fix(native): wrap the Pulls review verdict and widen the Overview facts column MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Changes requested ยท all threads resolved" was cut off in the 280dp facts column. The column is now 320dp and a stat's text wraps instead of truncating. --- native/cmd/lich-native/pulls_panels.go | 2 +- native/cmd/lich-native/pulls_view.go | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/native/cmd/lich-native/pulls_panels.go b/native/cmd/lich-native/pulls_panels.go index 52354cea9..2c9c7686d 100644 --- a/native/cmd/lich-native/pulls_panels.go +++ b/native/cmd/lich-native/pulls_panels.go @@ -262,7 +262,7 @@ func (v *pullView) panelList(gtx C, th *ui.Theme, rows []layout.Widget) D { // the description. var ( overviewProseWidth = unit.Dp(720) - overviewFactsWidth = unit.Dp(280) + overviewFactsWidth = unit.Dp(320) overviewSplitWidth = unit.Dp(760) ) diff --git a/native/cmd/lich-native/pulls_view.go b/native/cmd/lich-native/pulls_view.go index 13f13e72c..706604f81 100644 --- a/native/cmd/lich-native/pulls_view.go +++ b/native/cmd/lich-native/pulls_view.go @@ -375,7 +375,11 @@ func stat(gtx C, th *ui.Theme, ic *icons.Icon, text string, fg color.NRGBA) D { return layout.Flex{Alignment: layout.Middle}.Layout(gtx, layout.Rigid(func(gtx C) D { return pullGlyph(gtx, th, ic, ui.Space(3.5), fg) }), ui.Gap(1.5), - layout.Rigid(th.Text(ui.TextXS, text).In(fg).Weight(font.Medium).Layout), + layout.Rigid(func(gtx C) D { + l := th.Text(ui.TextXS, text).In(fg).Weight(font.Medium) + l.MaxLines = 0 + return l.Layout(gtx) + }), ) }