fix(ui): repo settings units overview anchor (#8322)

This fixes (or features?) a small nit that I found disturbing when clicking through repository settings.

# Test
- open repo settings
- click in navigation bar on "Units" and then on "Overview"
- the page opens now at top (not jumping down as before that change)
- click on "Issues", etc. -> the page still jumps to the related sections

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8322
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Co-authored-by: Robert Wolff <mahlzahn@posteo.de>
Co-committed-by: Robert Wolff <mahlzahn@posteo.de>
This commit is contained in:
Robert Wolff 2025-07-01 01:07:19 +02:00 committed by Gusted
parent 0ecb25fdcb
commit 2f0a993a33

View file

@ -7,7 +7,7 @@
<details class="item toggleable-item" {{if .PageIsRepoSettingsUnits}}open{{end}}>
<summary {{if .PageIsRepoSettingsUnits}}class="active"{{end}}>{{ctx.Locale.Tr "repo.settings.units.units"}}</summary>
<div class="menu">
<a class="item" href="{{.RepoLink}}/settings/units#overview">
<a class="item" href="{{.RepoLink}}/settings/units">
{{ctx.Locale.Tr "repo.settings.units.overview"}}
</a>
<a class="item" href="{{.RepoLink}}/settings/units#issues">