-
-
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
fixed the dropdown menu for the top New button to expand to the left #31273
Conversation
Not sure if this method is really something Fomantic supports officially, but if it works, we can go with it. I think we solved past cases via manual CSS. |
Actually fix is correct, I checked the CSS, there are two rules which left-align |
…o-gitea#31273) before: ![1717660314025](https://github.com/go-gitea/gitea/assets/3371163/17ae7a48-31c5-4c71-b285-f65d9106bf86) after: ![1717660674763](https://github.com/go-gitea/gitea/assets/3371163/85f847ac-a044-4695-9004-26e6485288c6)
…31273) (#31275) Backport #31273 by @kerwin612 before: ![1717660314025](https://github.com/go-gitea/gitea/assets/3371163/17ae7a48-31c5-4c71-b285-f65d9106bf86) after: ![1717660674763](https://github.com/go-gitea/gitea/assets/3371163/85f847ac-a044-4695-9004-26e6485288c6) Co-authored-by: Kerwin Bryant <[email protected]>
Unfortunately this introduced a regression where the menu flashes on page load. Will investigate later. It needs a fix similar to #30215. |
https://discord.com/channels/322538954119184384/322910365237248000/1248480303719252029 Can we discuss it? |
Not right now, but to explain the issue: There is this CSS: .ui.menu:not(.vertical) .left.item,
.ui.menu:not(.vertical) .left.menu {
display: flex;
} Dropdown menus are hidden on page load via .ui.dropdown .menu {
display: none;
} Above selector has more specificity so dropdown shows before JS has loaded which takes a few milliseconds usually. Once JS loads, it hides the menu via Maybe as a more general solution we can remove the first CSS, but I'm not sure whether there would be side effects of doing that. Fix is in #31281. |
Maybe it could be changed like this?:
|
I don't think it's worth the time trying to make https://fomantic-ui.com/modules/dropdown.html#menu-direction So a So I suggest you leave it be and find some other areas to work on :) |
OK, I changed it because I saw this code: gitea/web_src/fomantic/build/semantic.js Line 5291 in ab1948d
gitea/web_src/fomantic/build/semantic.js Line 3796 in ab1948d
gitea/web_src/fomantic/build/semantic.js Line 4528 in ab1948d
OK, that's the end of the suggest. |
* giteaofficial/main: Fix and clean up `ConfirmModal` (go-gitea#31283) Enable poetry non-package mode (go-gitea#31282) fixed the dropdown menu for the top New button to expand to the left (go-gitea#31273) Optimize repo-list layout to enhance visual experience (go-gitea#31272) Allow including `Reviewed-on`/`Reviewed-by` lines for custom merge messages (go-gitea#31211) Add `MAX_ROWS` option for CSV rendering (go-gitea#30268) Update `golang.org/x/net` (go-gitea#31260) Add replacement module for `mholt/archiver` (go-gitea#31267) Fix Activity Page Contributors dropdown (go-gitea#31264)
Fixes #31273 (comment). Same method as used in #30215. All left-opening dropdowns need to use it method. --------- Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: Giteabot <[email protected]>
Fixes go-gitea#31273 (comment). Same method as used in go-gitea#30215. All left-opening dropdowns need to use it method. --------- Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: Giteabot <[email protected]>
before:
after: