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

fix for #41 #42

Merged
merged 2 commits into from
Feb 6, 2022
Merged

fix for #41 #42

merged 2 commits into from
Feb 6, 2022

Conversation

jcolson
Copy link
Collaborator

@jcolson jcolson commented Feb 6, 2022

image

Copy link
Collaborator

@dwrolvink dwrolvink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, but might give issues in the future when people add images to the header using their own template. Also by using width it negatively effects small images by stretching them.

This would be better:

.container img {
    max-width: 100%;
}

This limits the effect to container divs (which always enclose note content), and does not stretch small images.

@dwrolvink dwrolvink merged commit cb3b871 into obsidian-html:master Feb 6, 2022
@jcolson jcolson deleted the imgcss branch February 6, 2022 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants