loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Prevent flash of dropdown menu on labels list (#30215)

On the labels list, This `left` class caused the dropdown content to
flash on page load until JS had hidden it. Remove it as I see no purpose
to it.

<img width="215" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/9e1de97f-dd89-41e0-9229-5c4a786ba762">

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 8da9130c1ffe93e0e97290fddb908ae5b67432e2)

authored by

silverwind
wxiaoguang
and committed by
Gergely Nagy
4be57708 998f4dc3

+7 -1
+1 -1
templates/repo/issue/labels/label_list.tmpl
··· 8 8 {{ctx.Locale.Tr "repo.issues.filter_sort"}} 9 9 </span> 10 10 {{svg "octicon-triangle-down" 14 "dropdown icon"}} 11 - <div class="left menu"> 11 + <div class="menu"> 12 12 <a class="{{if or (eq .SortType "alphabetically") (not .SortType)}}active {{end}}item" href="?sort=alphabetically&state={{$.State}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</a> 13 13 <a class="{{if eq .SortType "reversealphabetically"}}active {{end}}item" href="?sort=reversealphabetically&state={{$.State}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a> 14 14 <a class="{{if eq .SortType "leastissues"}}active {{end}}item" href="?sort=leastissues&state={{$.State}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.least_issues"}}</a>
+6
web_src/css/modules/header.css
··· 135 135 font-weight: var(--font-weight-normal); 136 136 } 137 137 138 + /* open dropdown menus to the left in right-attached headers */ 139 + .ui.attached.header > .ui.right .ui.dropdown .menu { 140 + right: 0; 141 + left: auto; 142 + } 143 + 138 144 /* if a .top.attached.header is followed by a .segment, add some margin */ 139 145 .ui.segments + .ui.top.attached.header, 140 146 .ui.attached.segment + .ui.top.attached.header {