-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix button alignments and remove unnecessary styles #34206
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
Conversation
…a common button group style, and gradually replace the button group styles on other pages later.
I'd prefer if we just remove |
Actually, I also agree. However, if we directly delete it from Since buttons are not always in groups, there might be a situation where there is another node beside a button, and the Therefore, my suggestion is that whenever we find such a case, we change it to this mark( |
I disagree, we should fix problems at their root instead of creating more technical debt by introducing another class. Also |
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.
Disagree +1
We already have flex-text-block
and flex-text-inline
to explicitly use "flex align center with gap", so ideally we need to:
.flex-text-block > .ui.button,
.flex-text-inline > .ui.button {
...
}
And use flex-text-block
and flex-text-inline
to replace legacy tw-flex
styles.
Hmm, actually we have already done so in "Adjust the layout of the toolbar on the Issues/Projects page (#33667)"
|
web_src/css/repo/header.css
Outdated
|
||
.repo-buttons button { | ||
/* ensure that text-btn and svg-text-btn have consistent height. */ | ||
line-height: 16px !important; |
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.
Why it is needed? I don't see difference.
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.
OK, I can see that it is for the "accept/reject transfer" buttons
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 remove that patch and leave the button height fine-tunes to the future.
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.
077fb57
to
3d7db9f
Compare
3d7db9f
to
a0150b7
Compare
Removed more hacky patches. |
a0150b7
to
97b4eef
Compare
97b4eef
to
e9bcc17
Compare
@kerwin612 please fix the merge conflicts. 🍵 |
# Conflicts: # web_src/css/repo/clone.css
* giteaofficial/main: Fix various misalignments and overflows (go-gitea#34227) Update net package (go-gitea#34228) Fix button alignments and remove unnecessary styles (go-gitea#34206) Fix project board links to related Pull Requests (go-gitea#34213) Fix empty repo clone panel border (go-gitea#34219) Fix: quoted replies incorrectly render user input as part of the quote (go-gitea#34216)
Continue with #34206. --------- Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
before:


after:

