]> git.wh0rd.org - nano-editor.git/commitdiff
screenshots: scale images down to the width of the screen
authorMike Frysinger <vapier@gmail.com>
Tue, 11 Aug 2026 16:35:54 +0000 (22:20 +0545)
committerMike Frysinger <vapier@gmail.com>
Tue, 11 Aug 2026 16:35:54 +0000 (22:20 +0545)
Most of the time this won't matter, but on mobile devices, it'll scale
down to the width of the screen automatically to make it all visible.
Legibility isn't super important in this scenario.

style.css

index 2053598b7bb69ae45dfae3f1fa76f6c0e3697a0f..904ef61fef918adc4d8aed619fd250a9f73d6869 100644 (file)
--- a/style.css
+++ b/style.css
@@ -161,6 +161,10 @@ div#bottom span.menuitem {
        white-space: nowrap;
 }
 
+#screenshots img {
+       max-width: 100%;
+}
+
 /* Mobile (i.e. phones) */
 @media only screen and (max-width: 768px) {
 body {