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 {
859859ul.loglist li:last-child { border-bottom: 0; }
860860ul.loglist li:hover { background: var(--hover); }
861861ul.loglist p { margin: 0; }
862ul.loglist .commitmain { flex: 1; min-width: 0; }
862ul.loglist .commitmain { flex: 1 1 auto; min-width: 0; }
863863ul.loglist .subject a { color: var(--fg); font-weight: 500; }
864864ul.loglist .subject a:hover { color: var(--link); }
865ul.loglist .commitside { display: flex; align-items: baseline; gap: var(--sp-2); white-space: nowrap; }
865ul.loglist .commitside { flex: none; display: flex; gap: var(--sp-2); align-items: center; white-space: nowrap; }
866866
867867ul.repolist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; }
868868ul.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; }
901901ul.issuelist li:hover { background: var(--hover); }
902902ul.issuelist li.empty { display: block; }
903903ul.issuelist p { margin: 0; }
904ul.issuelist .issuemain { flex: 1; min-width: 0; }
904ul.issuelist .issuemain { flex: 1 1 auto; min-width: 0; }
905905ul.issuelist .title a { color: var(--fg); font-weight: 500; }
906906ul.issuelist .title a:hover { color: var(--link); }
907907
@@ -1494,4 +1494,6 @@ svg.icon { vertical-align: -0.125em; }
14941494 .blameinfo { width: auto; }
14951495 .blamecode { border-left: 0; padding-left: var(--sp-3); width: 100%; }
14961496 .factgrid { grid-template-columns: repeat(2, auto); }
1497 ul.loglist li { flex-wrap: wrap; }
1498 ul.loglist .commitside { width: 100%; justify-content: flex-start; }
14971499}
internal/web/templates/issue.html +2 −2
@@ -15,7 +15,7 @@
1515<p><input type="text" name="title" aria-label="Title" value="{{.Issue.Title}}" required></p>
1616<p><textarea name="body" aria-label="Description" rows="8">{{.Issue.Body}}</textarea></p>
1717<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>
1919</form></details>{{end}}
2020{{if .BodyHTML}}<article class="comment">
2121 <header class="commenthead"><strong><a href="/{{.Issue.Author}}">{{.Issue.Author}}</a></strong> <span class="when">{{when .Issue.CreatedAt}}</span></header>
@@ -31,7 +31,7 @@
3131{{if .Viewer}}
3232<form method="post" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/issues/{{.Issue.Number}}/comment" class="commentform">
3333<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>
3535</form>
3636{{end}}
3737</div>
internal/web/templates/log.html +1 −1
@@ -4,7 +4,7 @@
44<form method="get" class="logfilter" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/log/{{.Ref}}">
55 <label for="path">Path</label>
66 <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>
88 {{if .FilePath}}<a class="act" href="/{{.Repo.OwnerName}}/{{.Repo.Name}}/log/{{.Ref}}">Clear</a>{{end}}
99</form>
1010{{if .FilePath}}<p class="meta">history of <a href="/{{.Repo.OwnerName}}/{{.Repo.Name}}/blob/{{.Ref}}/{{.FilePath}}"><code>{{.FilePath}}</code></a></p>{{end}}