fix(tracker/gioui): limit comments in unit list to single line

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-07-30 18:10:15 +03:00
parent fe0106bb60
commit 5839471bcc
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ type LabelStyle struct {
Alignment text.Alignment
Font font.Font
TextSize unit.Sp
MaxLines int
}
type LabelWidget struct {
@ -32,6 +33,7 @@ func (l LabelWidget) Layout(gtx C) D {
textColor := textColorMacro.Stop()
t := widget.Label{
Alignment: l.Alignment,
MaxLines: l.MaxLines,
}
if l.ShadowColor.A > 0 {
shadowColorMacro := op.Record(gtx.Ops)

View File

@ -173,7 +173,7 @@ instrumenteditor:
color: *disabled
hintcolor: *disabled
font: { style: 1 }
comment: { textsize: 12, color: *disabled }
comment: { textsize: 12, color: *disabled, maxlines: 1}
stack: { textsize: 12, color: *mediumemphasis, shadowcolor: *black }
disabled: { textsize: 12, color: *disabled }
warning: *warningcolor