From b42762e4dc295b258bbf599159d8a08dae37d21a Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Mon, 9 Sep 2024 23:54:51 +0200 Subject: [PATCH] Remove hardcoded textarea height --- adminer/include/functions.inc.php | 2 +- plugins/edit-textarea.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index d259f761..c69f7679 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -978,7 +978,7 @@ function input($field, $value, $function) { $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) . ''; } elseif ($function == "json" || preg_match('~^jsonb?$~', $field["type"])) { diff --git a/plugins/edit-textarea.php b/plugins/edit-textarea.php index 5dbe31e6..6328e6bb 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 "'; } }