Shorten a ScrollArea comment to the ten-word rule

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 18:02:52 -04:00
1 parent 9a7f593892
commit 43098065bf
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ func ScrollArea(c *ui.Context, s *ui.ScrollState, o ScrollAreaOptions, children
var v *ui.Element
row.Children(func() {
scrollBar(c, k, s, view, o.Disabled)
// A disabled view is a new element, so the focus leaves it.
// A disabled view is a new element; the focus leaves.
v = ui.Scroll(c).Key(o.Disabled).TrackScroll(s).Grow(1).Label(o.Label).FocusRing(false)
if o.Disabled {
v.Role(ui.RoleGroup).Description(k.Msg("disabled"))