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:
@@ -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
|
||||
|
@@ -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>"
|
||||
;
|
||||
}
|
||||
|
Reference in New Issue
Block a user