1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Increase maximum width of string edit (bug #930)

This commit is contained in:
Jakub Vrana
2025-03-20 15:39:55 +01:00
parent 09720b31f1
commit f38bbff5bf
2 changed files with 2 additions and 1 deletions

View 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

View 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>"
;
}