-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
feat: add name underneath users logo #1043
Conversation
Deploy preview for docusaurus-preview ready! Built with commit 275fdfc |
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.
@mptap Thank you for the PR. 👍
I think this may require some CSS updates, possibly, given what it looks like in the preview. https://deploy-preview-1043--docusaurus-preview.netlify.com/en/users
@JoelMarcey Updated, let me know what you think. |
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.
I think the name should be underneath the logo. Seems more natural to me.
@JoelMarcey Updated |
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.
Non-square images will be distorted if you change the CSS in that manner. Please have a look again.
@@ -2220,14 +2220,14 @@ input::placeholder { | |||
} | |||
|
|||
.showcaseSection .logos img { | |||
max-height: 128px; | |||
height: 128px; |
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.
This will break logos that aren't square in proportion. For example, have a look at Vuls and ml5.js on https://deploy-preview-1043--docusaurus-preview.netlify.com/en/users and compared them with https://docusaurus.io/en/users. The images are distorted.
You could add a wrapper div that has fixed width and height around all the images so that you can align the names and still maintain the aspect ratio of the images.
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.
@yangshun Updated, waited for the deploy env to be built - but it is on hold for some reason
padding: 20px; | ||
width: 128px; | ||
} | ||
|
||
@media only screen and (max-width: 735px) { | ||
.showcaseSection .logos img { | ||
max-height: 64px; | ||
height: 64px; |
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.
Same here.
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.
@yangshun Updated, waited for the deploy env to be built - but it is on hold for some reason
3e5ae00
to
6f23219
Compare
<a href={user.infoLink} key={user.infoLink}> | ||
<img src={user.image} alt={user.caption} title={user.caption} /> | ||
</a> | ||
<div> |
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.
The key
-prop needs to be moved to this div
Apologies @mptap we decided to go with another implementation. Thanks for your efforts 😄 |
Motivation
Added name of user underneath logo on users page #1040
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Ran yarn prettier, yarn lint and yarn test