]> git.joonet.de Git - adminer.git/commitdiff
Increase maximum width of string edit (bug #930)
authorJakub Vrana <jakub@vrana.cz>
Thu, 20 Mar 2025 14:39:55 +0000 (15:39 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 20 Mar 2025 14:39:55 +0000 (15:39 +0100)
CHANGELOG.md
adminer/include/html.inc.php

index 8d0d18c3ceba7119585f8d0401d6fabc7695a88e..0ee52d51876b0ae066bd8fc6881da7d524cd097a 100644 (file)
@@ -7,6 +7,7 @@
 - MS SQL: Fix collation issues when retrieving default values
 - CSS: Sticky table headers (bug #918)
 - CSS: Allow more custom styles with dark mode (bug #925)
+- CSS: Increase maximum width of string edit (bug #930)
 - Plugins: autoload plugins from adminer-plugins/
 - Plugins: configure plugins with adminer-plugins.php
 - Plugins: Display loaded plugins in server overview
index afc28e76aa18097099ab9328eecda83ce8797d08..6bbd9299d6c77863233d3e8cd40a220efe83fd1a 100644 (file)
@@ -323,7 +323,7 @@ function input($field, $value, $function, $autofocus = false) {
                        echo "<input"
                                . ((!$has_function || $function === "") && preg_match('~(?<!o)int(?!er)~', $field["type"]) && !preg_match('~\[\]~', $field["full_type"]) ? " type='number'" : "")
                                . " value='" . h($value) . "'" . ($maxlength ? " data-maxlength='$maxlength'" : "")
-                               . (preg_match('~char|binary~', $field["type"]) && $maxlength > 20 ? " size='40'" : "")
+                               . (preg_match('~char|binary~', $field["type"]) && $maxlength > 20 ? " size='" . ($maxlength > 99 ? 60 : 40) . "'" : "")
                                . "$attrs>"
                        ;
                }