-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix protected branch icon location #26576
Fix protected branch icon location #26576
Conversation
templates/repo/commit_status.tmpl
Outdated
@@ -1,4 +1,5 @@ | |||
<!-- make sure this matches the color logic in web_src/js/components/DashboardRepoList.vue --> | |||
<span class="gt-df gt-ac"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not right to put gt-df gt-ac
everywhere. Only the parent container needs the "align-items: center"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, also this gt-df gt-ac
is essentially a noop because it wraps the child exactly so display: flex
will not alter the rendering over default display: block
.
templates/repo/branch/list.tmpl
Outdated
<div class="gt-df gt-ac"> | ||
{{if .DefaultBranchBranch.IsProtected}} | ||
<span class="flex-text-inline gt-pr-2">{{svg "octicon-shield-lock"}}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parent already has "align-items: center", this flex-text-inline
is a no op for a single SVG element.
6b05144
to
e2a7adb
Compare
Backport #26576 by @yp05327 Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/717c726d-d3ae-4ea3-86bf-36fd8430f1ba) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/f4508428-380a-4b44-9cc2-fa9483971808) Co-authored-by: yp05327 <[email protected]>
Many |
-> Improve branch list UI #27319 |
* giteaoffical/main: (22 commits) Fix review UI (go-gitea#27322) Improve issue history dialog and make poster can delete their own history (go-gitea#27323) Improve branch list UI (go-gitea#27319) doctor: delete action entries without existing user (go-gitea#27292) fix orphan check for deleted branch (go-gitea#27310) make writing main test easier (go-gitea#27270) [skip ci] Updated translations via Crowdin Fix protected branch icon location (go-gitea#26576) move the `gitea admin` subcommands into separate files (go-gitea#27307) Fix chinese translation (go-gitea#27296) bump bleve (go-gitea#27300) Redefine the meaning of column is_active to make Actions Registration Token generation easier (go-gitea#27143) Use vitest globals (go-gitea#27102) Fix divider in subscription page (go-gitea#27298) Fix yaml test (go-gitea#27297) Enable production source maps for index.js, fix CSS sourcemaps (go-gitea#27291) Fix some animation bugs (go-gitea#27287) Add missed return to actions view fetch (go-gitea#27289) Fix more yaml lint errors (go-gitea#27284) Fix incorrect change from go-gitea#27231 (go-gitea#27275) ...
Before:
After: