diff options
author | 0ko <0ko@noreply.codeberg.org> | 2025-01-15 20:56:17 +0100 |
---|---|---|
committer | Otto <otto@codeberg.org> | 2025-01-15 20:56:17 +0100 |
commit | dd1523c72ee622a4d38b347668bf56003984eba0 (patch) | |
tree | ba2d977c2752aad587f37ca84287c17ba44b374d | |
parent | chore(release-notes): Forgejo v10.0.0 (#6408) (diff) | |
download | forgejo-dd1523c72ee622a4d38b347668bf56003984eba0.tar.xz forgejo-dd1523c72ee622a4d38b347668bf56003984eba0.zip |
fix(ui): correct switch ordering (#6576)
Regressions of #6459 and #6542:
`templates/repo/issue/navbar.tmpl`:
* `issue-list-navbar` is the ordering class which was incorrectly removed
* and then it was incorrectly replaced with `list-header-toggle`
`templates/repo/issue/openclose.tmpl`:
* it did not have ordering rules in the first place
* but then `list-header-toggle` was incorrectly applied to it
Thanks to @fnetX for spotting and notifying!
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6576
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Co-committed-by: 0ko <0ko@noreply.codeberg.org>
-rw-r--r-- | templates/repo/issue/navbar.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/openclose.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/navbar.tmpl b/templates/repo/issue/navbar.tmpl index 4874bf2ad4..4d90ca3c0e 100644 --- a/templates/repo/issue/navbar.tmpl +++ b/templates/repo/issue/navbar.tmpl @@ -1,4 +1,4 @@ -<div class="switch list-header-toggle"> +<div class="switch issue-list-navbar"> <a class="{{if .PageIsLabels}}active {{end}}item" href="{{.RepoLink}}/labels">{{ctx.Locale.Tr "repo.labels"}}</a> <a class="{{if .PageIsMilestones}}active {{end}}item" href="{{.RepoLink}}/milestones">{{ctx.Locale.Tr "repo.milestones"}}</a> </div> diff --git a/templates/repo/issue/openclose.tmpl b/templates/repo/issue/openclose.tmpl index d93c7e01f5..efe4fa6756 100644 --- a/templates/repo/issue/openclose.tmpl +++ b/templates/repo/issue/openclose.tmpl @@ -1,4 +1,4 @@ -<div class="switch list-header-toggle"> +<div class="switch"> <a class="{{if eq .State "open"}}active {{end}}item" href="{{.OpenLink}}" data-test-name="open-issue-count"> {{if .PageIsMilestones}} {{svg "octicon-milestone" 16 "tw-mr-2"}} |