shithub: shithub

Download patch

ref: b76056ce782ce7b867ac8577427a770b0e6f8b9d
parent: 2e798f8d446018f0d0322618ad4d701f1695ea8e
author: Ori Bernstein <[email protected]>
date: Tue Feb 16 20:46:39 EST 2021

min-width: scale to viewport.

If we can shrink to the viewport width, let's do it.

--- a/common.rc
+++ b/common.rc
@@ -103,7 +103,7 @@
 			body{
 				padding: 3em;
 				margin: auto;
-				min-width: 50em;
+				min-width: min(95vw, 50em);
 				width: min-content;
 				font-family: sans-serif;
 				tab-space: 8;