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

Layout: unified · split

internal/web/static/style.css +5 −3
@@ -859,10 +859,10 @@ ul.loglist li {
859ul.loglist li:last-child { border-bottom: 0; } 859ul.loglist li:last-child { border-bottom: 0; }
860ul.loglist li:hover { background: var(--hover); } 860ul.loglist li:hover { background: var(--hover); }
861ul.loglist p { margin: 0; } 861ul.loglist p { margin: 0; }
862ul.loglist .commitmain { flex: 1; min-width: 0; } 862ul.loglist .commitmain { flex: 1 1 auto; min-width: 0; }
863ul.loglist .subject a { color: var(--fg); font-weight: 500; } 863ul.loglist .subject a { color: var(--fg); font-weight: 500; }
864ul.loglist .subject a:hover { color: var(--link); } 864ul.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; }
866 866
867ul.repolist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; } 867ul.repolist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; }
868ul.repolist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); } 868ul.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; }
901ul.issuelist li:hover { background: var(--hover); } 901ul.issuelist li:hover { background: var(--hover); }
902ul.issuelist li.empty { display: block; } 902ul.issuelist li.empty { display: block; }
903ul.issuelist p { margin: 0; } 903ul.issuelist p { margin: 0; }
904ul.issuelist .issuemain { flex: 1; min-width: 0; } 904ul.issuelist .issuemain { flex: 1 1 auto; min-width: 0; }
905ul.issuelist .title a { color: var(--fg); font-weight: 500; } 905ul.issuelist .title a { color: var(--fg); font-weight: 500; }
906ul.issuelist .title a:hover { color: var(--link); } 906ul.issuelist .title a:hover { color: var(--link); }
907 907
@@ -1494,4 +1494,6 @@ svg.icon { vertical-align: -0.125em; }
1494 .blameinfo { width: auto; } 1494 .blameinfo { width: auto; }
1495 .blamecode { border-left: 0; padding-left: var(--sp-3); width: 100%; } 1495 .blamecode { border-left: 0; padding-left: var(--sp-3); width: 100%; }
1496 .factgrid { grid-template-columns: repeat(2, auto); } 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<p><input type="text" name="title" aria-label="Title" value="{{.Issue.Title}}" required></p> 15<p><input type="text" name="title" aria-label="Title" value="{{.Issue.Title}}" required></p>
16<p><textarea name="body" aria-label="Description" rows="8">{{.Issue.Body}}</textarea></p> 16<p><textarea name="body" aria-label="Description" rows="8">{{.Issue.Body}}</textarea></p>
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> 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</form></details>{{end}} 19</form></details>{{end}}
20{{if .BodyHTML}}<article class="comment"> 20{{if .BodyHTML}}<article class="comment">
21 <header class="commenthead"><strong><a href="/{{.Issue.Author}}">{{.Issue.Author}}</a></strong> <span class="when">{{when .Issue.CreatedAt}}</span></header> 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{{if .Viewer}} 31{{if .Viewer}}
32<form method="post" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/issues/{{.Issue.Number}}/comment" class="commentform"> 32<form method="post" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/issues/{{.Issue.Number}}/comment" class="commentform">
33<p><textarea name="body" aria-label="Comment" rows="4" placeholder="Comment as {{.Viewer}}"></textarea></p> 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</form> 35</form>
36{{end}} 36{{end}}
37</div> 37</div>
internal/web/templates/log.html +1 −1
@@ -4,7 +4,7 @@
4<form method="get" class="logfilter" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/log/{{.Ref}}"> 4<form method="get" class="logfilter" action="/{{.Repo.OwnerName}}/{{.Repo.Name}}/log/{{.Ref}}">
5 <label for="path">Path</label> 5 <label for="path">Path</label>
6 <input type="text" id="path" name="path" value="{{.FilePath}}" placeholder="filter to a file or directory"> 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 {{if .FilePath}}<a class="act" href="/{{.Repo.OwnerName}}/{{.Repo.Name}}/log/{{.Ref}}">Clear</a>{{end}} 8 {{if .FilePath}}<a class="act" href="/{{.Repo.OwnerName}}/{{.Repo.Name}}/log/{{.Ref}}">Clear</a>{{end}}
9</form> 9</form>
10{{if .FilePath}}<p class="meta">history of <a href="/{{.Repo.OwnerName}}/{{.Repo.Name}}/blob/{{.Ref}}/{{.FilePath}}"><code>{{.FilePath}}</code></a></p>{{end}} 10{{if .FilePath}}<p class="meta">history of <a href="/{{.Repo.OwnerName}}/{{.Repo.Name}}/blob/{{.Ref}}/{{.FilePath}}"><code>{{.FilePath}}</code></a></p>{{end}}