thebaer / MMRA

Make Medium Readable Again — a browser extension
https://makemediumreadable.com
MIT License
668 stars 31 forks source link

Option to disable full-width images #16

Open waldyrious opened 6 years ago

waldyrious commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

thebaer commented 6 years ago

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

Fraasi commented 6 years ago

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;
}