]> git.wh0rd.org Git - nano-editor.git/commitdiff
add <meta> for device width to improve mobile rendering
authorMike Frysinger <vapier@gentoo.org>
Tue, 14 Nov 2023 16:06:01 +0000 (11:06 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 14 Nov 2023 16:06:01 +0000 (11:06 -0500)
It could use some work, but it's still significantly better with this.

top.php

diff --git a/top.php b/top.php
index 4fbf7a08a9090668b67a97af49c6bf97da1ad670..0b0d162f277bd9ccee0ff9651c6186d382e778f1 100644 (file)
--- a/top.php
+++ b/top.php
@@ -3,6 +3,7 @@
 
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+   <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>nano &ndash; <?= $title ?></title>
 <?php if (isset($mainpage)): ?>
    <meta name="description" content="GNU nano is a small editor for on the terminal. It supports syntax highlighting, spell checking, justifying, completion, undo/redo...">