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

Option to disable full-width images #16

Open
waldyrious opened this issue Dec 18, 2017 · 4 comments
Open

Option to disable full-width images #16

waldyrious opened this issue Dec 18, 2017 · 4 comments

Comments

@waldyrious
Copy link

Besides the massive headers (#9), one of the things that often annoys me in Medium posts is the huge, full-width images in the body of the post.

I think scaling them down to reasonable sizes can be achieved by changing the sectionLayout--fullWidth class to have the same definitions as the sectionLayout--insetColumn class, i.e.:

.sectionLayout--fullWidth {
    max-width: 740px;
    margin: 0 auto;
}

It also helps to reduce the huge bottom margin in figure element:

.graf--layoutFillWidth {
    margin-bottom: inherit;
}
@thebaer
Copy link
Owner

thebaer commented Dec 19, 2017

Nice, do you have an example post with a full-width image in the body? So we can all confirm the exact issue and any potential solutions.

@waldyrious
Copy link
Author

Sure. This is the one that prompted me to open the issue: https://blog.keep.network/zero-knowledge-proofs-zcash-and-ethereum-f6d89fa7cba8

@thebaer
Copy link
Owner

thebaer commented Dec 19, 2017

Oh yeah, that's crazy. We should definitely add the option.

@Fraasi
Copy link

Fraasi commented Feb 16, 2018

I thought I would try to take this, but the only thing that worked for me in your extension was header moving out of the way (in uptodate chrome & vivaldi).
So I think I'll keep using my simple stylus script to clear all the garbage:

.metabar, .u-fixed, .u-height44 {
  display: none;
}

Anyway, this works for me in medium site to shrink image width to paragraph width and center it.
(does not work in above mentioned keep.network site as it uses different class names)

.graf-after--p {
  width: 700px;
  margin: 0px auto;
}

@thebaer thebaer removed this from the v1.4 milestone Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants