From: Peter Knut Date: Mon, 9 Sep 2024 21:54:51 +0000 (+0200) Subject: Remove hardcoded textarea height X-Git-Tag: v5.1.0~71 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=09720b31f1a46bca56bcfb46221e0c4b648088f0;p=adminer.git Remove hardcoded textarea height --- diff --git a/adminer/include/html.inc.php b/adminer/include/html.inc.php index a574f115..afc28e76 100644 --- a/adminer/include/html.inc.php +++ b/adminer/include/html.inc.php @@ -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 "" . h($value) . ''; } else { diff --git a/plugins/edit-textarea.php b/plugins/edit-textarea.php index e3abcb09..9cceeb4e 100644 --- a/plugins/edit-textarea.php +++ b/plugins/edit-textarea.php @@ -10,7 +10,7 @@ class AdminerEditTextarea { function editInput($table, $field, $attrs, $value) { if (preg_match('~char~', $field["type"])) { - return "'; + return "'; } } }