-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Fix avatar misalignment #22955
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
Fix avatar misalignment #22955
Changes from 2 commits
9f0ea4c
441a768
63b69e3
e1ceb01
9b529ce
5ce3e13
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -853,6 +853,12 @@ a.commit-statuses-trigger { | |
| color: var(--color-text); | ||
| } | ||
|
|
||
| .ui.list > .item > img.ui.avatar + .content { | ||
| display: inline-block; | ||
| vertical-align: top; | ||
| padding-left: .5em; | ||
| } | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This selector seems too complex. If there is a certain place using the avatar, do the helper CSS classes help?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it is a original Fomantic selector, I'm happy to keep it, even if complex. It'll ensure compatibility.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually it is not an original Fomantic selector, but there is a similar selector and I replaced
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which page and which elements will this style be applied to?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to my test, this style is applied to the OK, maybe not that complex, add
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is good enough: diff --git a/web_src/less/_explore.less b/web_src/less/_explore.less
index 5a41f8dc5..5caf21d41 100644
--- a/web_src/less/_explore.less
+++ b/web_src/less/_explore.less
@@ -69,6 +69,7 @@
.ui.user.list {
.item {
padding-bottom: 25px;
+ display: flex;
&:not(:first-child) {
border-top: 1px solid var(--color-secondary);
@@ -78,6 +79,7 @@
img.ui.avatar {
width: 40px;
height: 40px;
+ margin-right: 10px;
}
.description {
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Good idea. Thank you very much! |
||
| .ui.list .list > .item .description, | ||
| .ui.list > .item .description { | ||
| color: var(--color-text); | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.