Re: Responsive images in pgweb docs

Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: "Jonathan S. Katz" <jkatz@postgresql.org>, Pg Docs <pgsql-docs@lists.postgresql.org>
Date: 2019-04-04T11:17:04Z
Lists: pgsql-docs

Attachments

Here is a patch to improve this a bit.  It turns back on making the SVG
images in the HTML output scale with the page size.  I also added some
CSS stuff to make the width 75% on large screens for a more pleasing look.

This fixes it for the gin image.  The pagelayout image still doesn't
scale, presumably for the reasons you identified inside the SVG code.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Commits

  1. Add viewBox attribute to storage page layout SVG image

  2. Better scaling of images in HTML output