Commit bbfca815b0
bbfca815b0b1f29647d69a27b25220b12ff7a018
parent: 3fa8d16dc1
Verified · cmc ci/build: success ci/test: success
cmc <hello@cleberg.net> · 2026-09-17 15:29 UTC
web: log rows wrap on a phone; issue form and log filter labels
Ref #218
internal/web/static/style.css
+5 −3
| @@ -859,10 +859,10 @@ ul.loglist li { |
| 859 | 859 | ul.loglist li:last-child { border-bottom: 0; } |
| 860 | 860 | ul.loglist li:hover { background: var(--hover); } |
| 861 | 861 | ul.loglist p { margin: 0; } |
| 862 | | ul.loglist .commitmain { flex: 1; min-width: 0; } |
| 862 | ul.loglist .commitmain { flex: 1 1 auto; min-width: 0; } |
| 863 | 863 | ul.loglist .subject a { color: var(--fg); font-weight: 500; } |
| 864 | 864 | ul.loglist .subject a:hover { color: var(--link); } |
| 865 | | ul.loglist .commitside { display: flex; align-items: baseline; gap: var(--sp-2); white-space: nowrap; } |
| 865 | ul.loglist .commitside { flex: none; display: flex; gap: var(--sp-2); align-items: center; white-space: nowrap; } |
| 866 | 866 | |
| 867 | 867 | ul.repolist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; } |
| 868 | 868 | ul.repolist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); } |
| @@ -901,7 +901,7 @@ ul.issuelist li:last-child { border-bottom: 0; } |
| 901 | 901 | ul.issuelist li:hover { background: var(--hover); } |
| 902 | 902 | ul.issuelist li.empty { display: block; } |
| 903 | 903 | ul.issuelist p { margin: 0; } |
| 904 | | ul.issuelist .issuemain { flex: 1; min-width: 0; } |
| 904 | ul.issuelist .issuemain { flex: 1 1 auto; min-width: 0; } |
| 905 | 905 | ul.issuelist .title a { color: var(--fg); font-weight: 500; } |
| 906 | 906 | ul.issuelist .title a:hover { color: var(--link); } |
| 907 | 907 | |
| @@ -1494,4 +1494,6 @@ svg.icon { vertical-align: -0.125em; } |
| 1494 | 1494 | .blameinfo { width: auto; } |
| 1495 | 1495 | .blamecode { border-left: 0; padding-left: var(--sp-3); width: 100%; } |
| 1496 | 1496 | .factgrid { grid-template-columns: repeat(2, auto); } |
| 1497 | ul.loglist li { flex-wrap: wrap; } |
| 1498 | ul.loglist .commitside { width: 100%; justify-content: flex-start; } |
| 1497 | 1499 | } |
internal/web/templates/issue.html
+2 −2
| @@ -15,7 +15,7 @@ |
| 15 | 15 | <p><input type="text" name="title" aria-label="Title" value="{{.Issue.Title}}" required></p> |
| 16 | 16 | <p><textarea name="body" aria-label="Description" rows="8">{{.Issue.Body}}</textarea></p> |
| 17 | 17 | <p><input type="text" name="labels" aria-label="Labels" value="{{range $i, $l := .Issue.Labels}}{{if $i}} {{end}}{{$l}}{{end}}" placeholder="labels, space-separated (write access)"></p> |
| 18 | | <p><button type="submit" class="btn">save</button></p> |
| 18 | <p><button type="submit" class="btn">Save</button></p> |
| 19 | 19 | </form></details>{{end}} |
| 20 | 20 | {{if .BodyHTML}}<article class="comment"> |
| 21 | 21 | <header class="commenthead"><strong><a href="/{{.Issue.Author}}">{{.Issue.Author}}</a></strong> <span class="when">{{when .Issue.CreatedAt}}</span></header> |
| @@ -31,7 +31,7 @@ |
| 31 | 31 | {{if .Viewer}} |
| 32 | 32 | <form method="post" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/issues/{{.Issue.Number}}/comment" class="commentform"> |
| 33 | 33 | <p><textarea name="body" aria-label="Comment" rows="4" placeholder="Comment as {{.Viewer}}"></textarea></p> |
| 34 | | <p><button type="submit" class="btn">comment</button></p> |
| 34 | <p><button type="submit" class="btn">Comment</button></p> |
| 35 | 35 | </form> |
| 36 | 36 | {{end}} |
| 37 | 37 | </div> |
internal/web/templates/log.html
+1 −1
| @@ -4,7 +4,7 @@ |
| 4 | 4 | <form method="get" class="logfilter" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/log/{{.Ref}}"> |
| 5 | 5 | <label for="path">Path</label> |
| 6 | 6 | <input type="text" id="path" name="path" value="{{.FilePath}}" placeholder="filter to a file or directory"> |
| 7 | | <button type="submit" class="btn">Search</button> |
| 7 | <button type="submit" class="btn">Filter</button> |
| 8 | 8 | {{if .FilePath}}<a class="act" href="/{{.Repo.OwnerName}}/{{.Repo.Name}}/log/{{.Ref}}">Clear</a>{{end}} |
| 9 | 9 | </form> |
| 10 | 10 | {{if .FilePath}}<p class="meta">history of <a href="/{{.Repo.OwnerName}}/{{.Repo.Name}}/blob/{{.Ref}}/{{.FilePath}}"><code>{{.FilePath}}</code></a></p>{{end}} |