Compare commits

...

2 Commits

Author SHA1 Message Date
611705fa0d Change icon on dropdown 2024-08-16 18:01:08 -04:00
16645eeeda Update Tomo API 2024-08-16 18:01:01 -04:00
3 changed files with 4 additions and 6 deletions

View File

@ -30,9 +30,7 @@ func NewDropdown (items ...string) *Dropdown {
dropdown.SetRole(tomo.R("objects", "Dropdown"))
dropdown.SetAttr(tomo.ALayout(layouts.Row { true, false }))
dropdown.Add(dropdown.label)
// TODO: replace IconValueDecrement with a drop-down expand icon once
// we get that
dropdown.Add(NewIcon(tomo.IconValueDecrement, tomo.IconSizeSmall))
dropdown.Add(NewIcon(tomo.IconListChoose, tomo.IconSizeSmall))
dropdown.SetItems(items...)
if len(items) > 0 {

2
go.mod
View File

@ -2,4 +2,4 @@ module git.tebibyte.media/tomo/objects
go 1.20
require git.tebibyte.media/tomo/tomo v0.45.0
require git.tebibyte.media/tomo/tomo v0.46.1

4
go.sum
View File

@ -1,2 +1,2 @@
git.tebibyte.media/tomo/tomo v0.45.0 h1:fQH0WIPidW275hOq9dE6R7p064xG1RGx2QU68Avlr84=
git.tebibyte.media/tomo/tomo v0.45.0/go.mod h1:WrtilgKB1y8O2Yu7X4mYcRiqOlPR8NuUnoA/ynkQWrs=
git.tebibyte.media/tomo/tomo v0.46.1 h1:/8fT6I9l4TK529zokrThbNDHGRvUsNgif1Zs++0PBSQ=
git.tebibyte.media/tomo/tomo v0.46.1/go.mod h1:WrtilgKB1y8O2Yu7X4mYcRiqOlPR8NuUnoA/ynkQWrs=