diff --git a/examples/gno.land/p/demo/ui/ui.gno b/examples/gno.land/p/demo/ui/ui.gno index efa185914a0..79e257bfae6 100644 --- a/examples/gno.land/p/demo/ui/ui.gno +++ b/examples/gno.land/p/demo/ui/ui.gno @@ -114,16 +114,27 @@ func (l Link) String(dom DOM) string { type BulletList []DomStringer -func (bl BulletList) String(dom DOM) string { +func (bl BulletList) stringIndent(dom DOM, depth int) string { output := "" + // indent by 2 spaces * depth + indent := strings.Repeat(" ", depth) for _, entry := range bl { - output += "- " + entry.String(dom) + "\n" + switch e := entry.(type) { + case BulletList: + output += e.stringIndent(dom, depth+1) + default: + output += indent + "- " + e.String(dom) + "\n" + } } return output } +func (bl BulletList) String(dom DOM) string { + return bl.stringIndent(dom, 0) +} + func Text(s string) DomStringer { return Raw{Content: s} } diff --git a/gno.land/cmd/gnoweb/static/css/app.css b/gno.land/cmd/gnoweb/static/css/app.css index d02471e1d80..57e8cc79763 100644 --- a/gno.land/cmd/gnoweb/static/css/app.css +++ b/gno.land/cmd/gnoweb/static/css/app.css @@ -236,15 +236,21 @@ a[href="#"] { ul { padding: 0; + list-style: none; +} + +ul > li > ul { + padding-left: 1rem; + list-style: circle inside; } li { - list-style: none; margin-bottom: 0.4rem; } li > * { vertical-align: middle; + margin: 0; } input {