Fix:the rounded corners of the folded file are not displayed correctly#29953
Fix:the rounded corners of the folded file are not displayed correctly#29953silverwind merged 7 commits intogo-gitea:mainfrom
Conversation
|
How does it look in expanded state? I recall this was a tricky fix because the CSS needed to deal with expanded state differently, and I think there might be some dead CSS lying around for this. |
|
Looks okay, but I will check in detail later if this can be improved further so it only targets the collapsed state. Also I will try to use blame to find my old change so any unused CSS can be removed. |
silverwind
left a comment
There was a problem hiding this comment.
Block until I have investigated.
* main: (106 commits) Relax generic package filename restrictions (go-gitea#30135) Remove jQuery class from the common admin functions (go-gitea#30137) Remove jQuery class from the reaction selector (go-gitea#30138) Forbid jQuery `.attr` (go-gitea#30116) Refactor render (go-gitea#30136) Fix: Organization Interface Display Issue (go-gitea#30133) Remove jQuery `.attr` from the Fomantic dropdowns (go-gitea#30114) Remove jQuery `.attr` from the common admin functions (go-gitea#30115) Remove jQuery from the create/rename branch modals (except Fomantic) (go-gitea#30109) Remove fomantic label module (go-gitea#30081) Fix bug for markdown rendering of blockquote (go-gitea#30130) Fix: The interface is broken when modifying code comments under mobile devices (go-gitea#30125) When the title in the issue has a value, set the text cursor at the end of the text. (go-gitea#30090) Load attachments for code comments (go-gitea#30124) Upgrade fabric to 6.0.0-beta20 (go-gitea#30121) Fix click handler in job-step-summary (go-gitea#30122) Put an edit file button on pull request files to allow a quick operation (go-gitea#29697) Remove jQuery `.attr` from the Fomantic modal cancel buttons (go-gitea#30113) Remove jQuery `.attr` from the code comments (go-gitea#30112) Remove jQuery calls that have no effect on `showElem` and `hideElem` (go-gitea#30110) ...
|
I pushed an alternative fix: .ui.segments:not(.horizontal) > .segment:has(~ .tw-hidden) {
border-radius: 0.28571429rem;
}This selector means "any segment that is followed by one or more hidden elements". In a situation with no hidden elements,
@wxiaoguang fyi, this is another case where selecting for |
|
The only cleaner solution that I see it to remove collapsed elements from the DOM, after which fomantic styles will work as expected. It may be possible because I think this toggling is happening in our JS. Another solution may be to create a new generic expander element with |
|
Let's merge it imho, I think the solution is good as long as we have a single class to hide elements. I also commented on StackOverflow on this topic. The other solutions on there are all garbage imho. |
go-gitea#29953) Fix: [go-gitea#29933](go-gitea#29933) **Before**  **After**  --------- Co-authored-by: silverwind <me@silverwind.io>
#29953) (#30177) Backport #29953 by @HEREYUA Fix: [#29933](#29933) **Before**  **After**  Co-authored-by: HEREYUA <37935145+HEREYUA@users.noreply.github.com> Co-authored-by: silverwind <me@silverwind.io>
* giteaofficial/main: Include encoding in signature payload (go-gitea#30174) Add `stylelint-value-no-unknown-custom-properties` and convert stylelint config to js (go-gitea#30117) Remove jQuery class from the commit button (go-gitea#30178) Remove jQuery class from the diff view (go-gitea#30176) Remove jQuery class from the notification count (go-gitea#30172) Remove jQuery class from the code range selection (go-gitea#30173) Fix:the rounded corners of the folded file are not displayed correctly (go-gitea#29953) Add setting to disable user features when user login type is not plain (go-gitea#29615) # Conflicts: # models/user/user.go


Fix: #29933
Before
After