[dokuwiki] New PR: fix: better max-width for images in tables

  • From: "micgro42" <wiki@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 26 Jan 2021 22:36:38 +0100 (CET)

Hi,

micgro42 opened a new pull request at 
https://github.com/splitbrain/dokuwiki/pull/3390:

Tables are very aggressive with how they size the contents of their cells. That 
leads to sometimes tiny images with max-width:100%, especially for images that 
already have a small intrinsic size.

Setting the `max-width` to `50vw`, i.e. half the view-port, is chosen as a 
trade-off between:
* letting small images keep their full size in most view-ports
* keeping large images still pretty large on large view-ports
* prevent scrolling in most circumstances (scrolling a table is really
  bad user experience, this is the goal of the browser)

Fixes #2059

Please help us to review this pull request, so new contributors get feedback in 
a timely manner.

91edd3a0-601e-11eb-921e-6985ef10e17a


-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] New PR: fix: better max-width for images in tables - micgro42