-
Notifications
You must be signed in to change notification settings - Fork 189
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
Fixes #1370: Set picture in post as their natural size #1373
Conversation
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 PR needs a number of things:
- Fix the first comment to add missing information. Please include the issue number this fixes in the format "Fixes #..." so that GitHub will link the issue. Please include a proper description of what you've done, as well as screenshots of the change running.
- Your fix applies way too narrowly. This won't deal with any images on other domains. We need a general solution here.
Also, I left a comment in the issue asking you to improve how you communicate when taking issues. Please approach this work more professionally.
@humphd Thank you for letting me know what I'm missing. By the way, can you please have a look at the first comment to see if I have met the requirements? And I also have made some modifications to make the solution more general as you said. |
@@ -19,7 +19,8 @@ | |||
max-width: 100%; | |||
padding-top: 1.5rem; | |||
padding-bottom: 1rem; | |||
width: 100%; | |||
width: auto; | |||
display: block; |
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'm not sure about this change to block
. This is going to mess-up cases where we have inline images in posts. @cindyledev or @agarcia-caicedo might know more. Am I wrong on this?
Updates to first comment look good, thank you. |
@phast184 what's happening with this? Are you hoping to include it for 0.3? If so, we need to get it in today, and there's a long line of PRs that need reviews and merges. Please co-ordinate with us on Slack and here. |
@@ -47,6 +47,10 @@ | |||
height: 1px; | |||
} | |||
|
|||
.telescope-post-content img[src*='1.bp.blogspot.com/'] { | |||
display: block; |
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.
@humphd @humphd Thank you for pointing this out. I noticed that those pictures scaled beyond their natural size belong to Blogger.com posts. Therefore, to avoid messing up inline image cases. I have push another commit in which I specifically declare that any picture from Blogger.com would be display: block
. What do you think about my code this time? I truly appreciate your enlightenment.
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.
Are we sure that blogger images are never inline? That seems hard to believe. Do you have some source for this info?
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.
Yah, you're right. I'm not completely sure the images from blogger are never inline. Hmm...
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 only change we should be making is to remove the width: 100%
. The rest of this seems wrong to me.
@phast184 Hi! Telescope team is working on merging the open PRs. Just wondering do you still have interest working on this PR and get merged? Please leave a comment if you decide to drop this PR, we'll assign another team member to work on it. Thank you :) |
This is going to need to be rebased. Also, let's get the next.js port finished before we tackle this, and then backport from Gatsby to Next.js. |
As agreed during our triage meeting, we will postpone work on this bug until we finish porting front-end to Next.js. |
See also #1412, which is related to this. |
closed by #1783 |
Issue This PR Addresses
Issue #1370
Type of Change
Description
Changes: Pictures that were not set as natural size so that they were blurry when getting displayed.
Before changes:
After changes:
Checklist