fix(basin): file bar spacing on tree root
2 files changed, +2 −2
- templates/layout.html modified +1 −1
- web.go modified +1 −1
templates/layout.html modified
| @@ -38,7 +38,7 @@ | ||
| 38 | 38 | </nav></div> |
| 39 | 39 | </div> |
| 40 | 40 | {{end}}{{end}} |
| 41 | -<main{{with .Data}}{{if index . "Entry"}} class="file"{{else if index . "Crumbs"}} class="file"{{end}}{{end}}> | |
| 41 | +<main{{with .Data}}{{if index . "File"}} class="file"{{end}}{{end}}> | |
| 42 | 42 | {{if .Error}}<p class="error">{{.Error}}</p>{{end}} |
| 43 | 43 | {{template "content" .}} |
| 44 | 44 | </main> |
web.go modified
| @@ -736,7 +736,7 @@ func (s *Server) tree(w http.ResponseWriter, r *http.Request, repo Repo, spec st | ||
| 736 | 736 | if filePath == "" { |
| 737 | 737 | crumbs = nil |
| 738 | 738 | } |
| 739 | - data := map[string]any{"Page": rp, "Path": filePath, "Crumbs": crumbs} | |
| 739 | + data := map[string]any{"Page": rp, "Path": filePath, "Crumbs": crumbs, "File": true} | |
| 740 | 740 | if last, _ := g.Log(rp.Commit, 1, filePath); len(last) > 0 { |
| 741 | 741 | data["LastCommit"] = last[0] |
| 742 | 742 | } |