Display: review r1 fixes

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 12:31:17 -04:00
1 parent 2a232930dd
commit 822e7a673a
31 files changed
+409 -156

No files matched your search

+14
View File
@@ -88,3 +88,17 @@ func TestAvatarGroupSnapshot(t *testing.T) {
})
})
}
func TestAvatarGroupSmallButtonHitArea(t *testing.T) {
tt := ui.NewTester(func(c *ui.Context) {
Use(c, Settings{})
ui.Row(c).AlignItems(ui.Start).Children(func() {
AvatarGroup(c, avatarGroupPeople, AvatarGroupOptions{Max: 2, Size: 20})
})
}, 400, 300)
tt.Frame()
r, ok := tt.Find("Show all 6 people")
if !ok || r.W < 28 || r.H < 28 {
t.Fatalf("hit area %v", r)
}
}