]> git.joonet.de Git - adminer.git/commitdiff
Remove hardcoded textarea height
authorPeter Knut <peter@pematon.com>
Mon, 9 Sep 2024 21:54:51 +0000 (23:54 +0200)
committerJakub Vrana <jakub@vrana.cz>
Thu, 20 Mar 2025 14:26:06 +0000 (15:26 +0100)
adminer/include/html.inc.php
plugins/edit-textarea.php

index a574f1153d9d34e8c4955f2c432b85cf991fa200..afc28e76aa18097099ab9328eecda83ce8797d08 100644 (file)
@@ -306,7 +306,7 @@ function input($field, $value, $function, $autofocus = false) {
                                $attrs .= " cols='50' rows='12'";
                        } else {
                                $rows = min(12, substr_count($value, "\n") + 1);
-                               $attrs .= " cols='30' rows='$rows'" . ($rows == 1 ? " style='height: 1.2em;'" : ""); // 1.2em - line-height
+                               $attrs .= " cols='30' rows='$rows'";
                        }
                        echo "<textarea$attrs>" . h($value) . '</textarea>';
                } else {
index e3abcb093f9ec5c11cc7891f363b6e257b2665fa..9cceeb4ec0d2514011b4882eb73d1cb53132045c 100644 (file)
@@ -10,7 +10,7 @@ class AdminerEditTextarea {
 
        function editInput($table, $field, $attrs, $value) {
                if (preg_match('~char~', $field["type"])) {
-                       return "<textarea cols='30' rows='1' style='height: 1.2em;'$attrs>" . Adminer\h($value) . '</textarea>';
+                       return "<textarea cols='30' rows='1'$attrs>" . Adminer\h($value) . '</textarea>';
                }
        }
 }