Skip to content
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

Merged
merged 1 commit into from
Mar 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/web/src/styles/telescope-post-content.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,33 @@
margin-left: auto;
margin-right: auto;
max-width: 100%;
max-height: 80vh;
padding-top: 1.5rem;
padding-bottom: 1rem;
display: block;
height: auto;
}

.telescope-post-content div > a > img {
width: 32px;
display: inline;
vertical-align: middle;
}

.telescope-post-content h1 > a > img {
Comment on lines +26 to +32
Copy link
Contributor

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 {
...
}

Copy link
Contributor Author

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?

width: 32px;
display: inline;
vertical-align: middle;
}

.telescope-post-content div > div {
display: inline;
}

.telescope-post-content div > h1 {
font-size: 1.8rem;
}

.telescope-post-content figure {
display: block;
margin: 0;
Expand Down