-
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 #1791: Handling with inline img #1910
Conversation
@izhuravlev Yes I mentioned this issue on Tuesday about this |
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.
Like I talked about this in the last call.
Using telescope-post-content div
will also affect those blogs from blogspot.
Oh that's what you meant, I just was not sure what blogspot is |
@rjayroso I think we should leave this for now, until any other idea pops up |
Agree. I believe currently there is no one method to take care of all the cases. |
I removed the styling for the images to be inline as it would, unfortunately, ruin some posts by making the images too small. I'm thinking of keeping it to what we had before but implement the styling for the GitHub links so it matches the font size as the rest of the post (1.8rem). This would at least make the links look less out of place, but it doesn't really deal with the images being too big (see below): Before (i.e. No div > h1 styling)After (set to 1.8rem) |
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 this image on the bottom of @yuanLeeMidori's post does not display properly:
I think we should address it in this issue @rjayroso
@birtony I checked it out and I agree the photo was not being displayed properly. I rebased and added a max-height to make tall pictures more friendly to view, see below (ignore red border):
I think the photo on the bottom of Yuan's post is a bit trippy because of how it was screenshotted, but either way let me know if you like this change otherwise I can revert it. UPDATE: I think I finally got everything working properly: |
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.
Please, file another issue for cases like below before merging this PR @rjayroso
.telescope-post-content div > a > img { | ||
width: 32px; | ||
display: inline; | ||
vertical-align: middle; | ||
} | ||
|
||
.telescope-post-content h1 > a > img { |
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.
You could group these like:
.telescope-post-content div, h1 > a > img {
...
}
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 tried this just now and it seems to ignore the CSS completely (as if it ain't there), I don't know why - thoughts?
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.
Nice for other blogs, but Blogspot image issue still there (32px).
@huynguyez I can file an issue to fix the BlogSpot bug and merge this I created another issue here of a potential fix for this |
* Added styling for div img [Removed] * Added styling for div > h1 and div > div [Removed] * Removed styling for div > div and div img, kept styling for div > h1 * Added max-height for tall pictures * Fixed inline images without affecting posts (BlogSpot still affected) * Fixed prettier complaint
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.
Since you gonna break it into another issue for Blogspot, this looks good to me!
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.
LGTM! Also very curious to see what happens with your blogspot idea 😄
Issue This PR Addresses
Fixes #1791
Fixes #1412
Type of Change
Description
I piggy-backed off of @huynguyez 's solution that he posted in issue #1791 (see here) and just added an extra line
vertical-align:50%;
to center the inline images.Checklist