-
-
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
Ensure commit-statuses box is sized correctly in headers #18538
Ensure commit-statuses box is sized correctly in headers #18538
Conversation
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>
The requirement for this patch-up comes from Lines 1932 to 1941 in 92e81e9
Which appears to come from #13932 |
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Can we remove the |
from repo-legacy.js: gitea/web_src/js/features/repo-legacy.js Lines 426 to 436 in 76e3111
The right/left says which side the popup appears. |
Hmm I need to check further, I guess this is a bug in Fomantic because |
it's our change in _base.less that has made this necessary. #18538 (comment) |
Seems so, we should instead use a class name distinct from fomantic for these right-aligned header contents, which will then allow us to remove that troublesome rule. |
Agreed but I think it's kinda difficult to even determine which things are relying on this selector - that's why I simply overrode the individual thing. I wanted something that was simple to backport to 1.16 without having to make major changes across several templates files. |
I think this might be a bit similar to our previous less code where we had at some point overridden right to always mean float right... actually we still have this:
AFAIU semantic had .float for these things so if you wanted something to float:left you'd set |
The Ideally, I guess we should just flexbox all these headers instead, but it'll be a even more involved change. |
Why don't we do that after we've merged this and backported it to 1.16 then we can properly fix this. |
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.
Let's go with this fow now, proper fix can follow.
make L-G-T-M work |
Somehow a spurious space sneaked in to go-gitea#18538 this PR simply removes it. Signed-off-by: Andrew Thornton <art27@cantab.net>
Somehow a spurious space sneaked in to #18538 this PR simply removes it. Signed-off-by: Andrew Thornton <art27@cantab.net>
) 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>
Somehow a spurious space sneaked in to go-gitea#18538 this PR simply removes it. Signed-off-by: Andrew Thornton <art27@cantab.net>
…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>
* giteaofficial/main: Use `CryptoRandomBytes` instead of `CryptoRandomString` (go-gitea#18439) Remove the spurious space in the .ui.right additional selector (go-gitea#18605) Ensure commit-statuses box is sized correctly in headers (go-gitea#18538) [skip ci] Updated translations via Crowdin Prevent merge messages from being sorted to the top of email chains (go-gitea#18566) Fix pushing to 1-x-dev docker tag (go-gitea#18578) Replace `sync.Map` with normal maps (go-gitea#18584) Fix oauth docs usage for 2fa (go-gitea#18581) Update .gitattributes for .tmpl files (go-gitea#18576) Prevent panic on prohibited user login with oauth2 (go-gitea#18562) Fix manifest.tmpl (go-gitea#18573) Make docker gitea/gitea:v1.16-dev etc refer to the latest build on that branch (go-gitea#18551) Add dropdown icon to template loading dropdown (go-gitea#18564)
Although go-gitea#18538 fixes the size of the header block the details links are still coalescing. Here we simply display: flex these instead of using .right 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 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>
…tea#18605) Somehow a spurious space sneaked in to go-gitea#18538 this PR simply removes it. Signed-off-by: Andrew Thornton <art27@cantab.net>
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