-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Align sidebar gears to the right #33721
Align sidebar gears to the right #33721
Conversation
Signed-off-by: Quentin Guidée <[email protected]>
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.
If it is a general/common layout, it needs a well-defined style, but not copying a lot of duplicate helper classes.
.ui.dropdown.text-flex-grow {
}
.ui.dropdown.text-flex-grow .text {
}
<div class="ui dropdown text-flex-grow">
</div>
Signed-off-by: Quentin Guidée <[email protected]>
0fd3d86
to
8e660ac
Compare
Hmm, I think I would have preferred |
Do you mean this 3c0ed69 ? A lot of |
I meant <a class="text muted tw-flex tw-justify-between">
<strong>{{ctx.Locale.Tr "repo.issues.new.assignees"}}</strong> {{if $pageMeta.CanModifyIssueOrPull}}{{svg "octicon-gear"}}{{end}}
</a> This will work as long as there exactly 2 child elements, which luckily is the case here. Another option may be auto margin |
Ugh, |
No, it doesn't work. You can try to check out the PR and try by yourself. |
I can confirm this was my first idea too, unfortunately without success |
Yeah it would need |
Then it becomes more ugly, right? Dozens of |
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.
Yeah this is more elegant.
* giteaofficial/main: Use pullrequestlist instead of []*pullrequest (go-gitea#33765) Upgrade act to 0.261.4 and actions-proto-go to v0.4.1 (go-gitea#33760) Webhook add X-Gitea-Hook-Installation-Target-Type Header (go-gitea#33752) Fix dynamic content loading init problem (go-gitea#33748) [skip ci] Updated translations via Crowdin Add composor source field (go-gitea#33502) upgrade go-crypto from 1.1.5 to 1.1.6 (go-gitea#33745) Disable go license generation as part of `make tidy` (go-gitea#33747) Refactor repo-diff.ts (go-gitea#33746) Use `git diff-tree` for `DiffFileTree` on diff pages (go-gitea#33514) [skip ci] Updated translations via Crowdin Improve "generate new access token" form (go-gitea#33730) Remove superflous tw-content-center (go-gitea#33741) Clone repository with Tea CLI (go-gitea#33725) allow filtering /repos/{owner}/{repo}/pulls by target base branch queryparam (go-gitea#33684) Show info about maintainers are allowed to edit a PR (go-gitea#33738) Improve admin user view page (go-gitea#33735) [skip ci] Updated translations via Crowdin Align sidebar gears to the right (go-gitea#33721)
Currently, the issue/pr sidebar is hard to read visually. One of the reason is that the gear icons make reading difficult because they are "in the way" when reading, and not aligned together.
This PR proposes to align them on the right.
Actions are also better highlighted this way.
Screenshots
Issue
Pull Request