-
-
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
Commit status list squished on commit view #18498
Comments
From my testing it appears to be related to If we add a |
When viewing commits as commits the commit-status box will be fixed at 30px in height due to being forced to be this size by a fomantic selector. This PR simply adds a few more selectors to force this to have height auto. Fix go-gitea#18498 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Ensure commit-statuses box is sized correctly in headers When viewing commits as commits the commit-status box will be fixed at 30px in height due to being forced to be this size by a fomantic selector. This PR simply adds a few more selectors to force this to have height auto. Fix #18498 Signed-off-by: Andrew Thornton <art27@cantab.net> * Update web_src/less/_repository.less Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
) Backport go-gitea#18538 Backport go-gitea#18605 * Ensure commit-statuses box is sized correctly in headers When viewing commits as commits the commit-status box will be fixed at 30px in height due to being forced to be this size by a fomantic selector. This PR simply adds a few more selectors to force this to have height auto. Fix go-gitea#18498 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
…8606) * Ensure commit-statuses box is sized correctly in headers (#18538) Backport #18538 Backport #18605 * Ensure commit-statuses box is sized correctly in headers When viewing commits as commits the commit-status box will be fixed at 30px in height due to being forced to be this size by a fomantic selector. This PR simply adds a few more selectors to force this to have height auto. Fix #18498 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> * Remove the spurious space in the .ui.right additional selector Somehow a spurious space sneaked in to #18538 this PR simply removes it. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@zeripath On 1.16.1, the box is the right size now, but the "Details" links on the right side are all stacked on top of one another: This is visible in the try.gitea.io link in the description of this issue: https://try.gitea.io/parnic-sks/commit-status-test/commit/5333d3d91b0fabe51286fa8bbe2d996901ca60e6 |
OK diff --git a/templates/repo/commit_statuses.tmpl b/templates/repo/commit_statuses.tmpl
index d2e9f0bd1..f33635abf 100644
--- a/templates/repo/commit_statuses.tmpl
+++ b/templates/repo/commit_statuses.tmpl
@@ -2,11 +2,11 @@
<div class="ui popup very wide fixed basic commit-statuses">
<div class="ui relaxed list divided">
{{range .Statuses}}
- <div class="ui item singular-status">
+ <div class="ui item singular-status df">
<span>{{template "repo/commit_status" .}}</span>
- <span class="ui">{{.Context}} <span class="text grey">{{.Description}}</span></span>
+ <span class="ui f1">{{.Context}} <span class="text grey">{{.Description}}</span></span>
{{if .TargetURL}}
- <div class="ui right"><a href="{{.TargetURL}}" target="_blank" rel="noopener noreferrer">{{$.root.i18n.Tr "repo.pulls.status_checks_details"}}</a></div>
+ <div class="ui"><a href="{{.TargetURL}}" target="_blank" rel="noopener noreferrer">{{$.root.i18n.Tr "repo.pulls.status_checks_details"}}</a></div>
{{end}}
</div>
{{end}}
|
Wait for backport |
) * Ensure commit-statuses box is sized correctly in headers When viewing commits as commits the commit-status box will be fixed at 30px in height due to being forced to be this size by a fomantic selector. This PR simply adds a few more selectors to force this to have height auto. Fix go-gitea#18498 Signed-off-by: Andrew Thornton <art27@cantab.net> * Update web_src/less/_repository.less Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
Gitea Version
1.16.0
Operating System
Windows 11
Browser Version
Google Chrome Version 97.0.4692.99 (Official Build) (64-bit)
Can you reproduce the bug on the Gitea demo site?
Yes
Description
Clicking on the status icon after the commit summary on a commit view page shows a squished box that is very difficult to use. This worked fine in 1.15.x and broke in 1.16.0
Broken: https://try.gitea.io/parnic-sks/commit-status-test/commit/5333d3d91b0fabe51286fa8bbe2d996901ca60e6
It works fine in other locations, however:
Screenshots
Broken:
![image](https://user-images.githubusercontent.com/62021255/151863936-44a635f8-7aa7-401b-8d0c-2ccaee133d98.png)
Correct:
![image](https://user-images.githubusercontent.com/62021255/151863996-b3f33dd2-659d-44b1-83e7-9ae9462480f6.png)
The text was updated successfully, but these errors were encountered: