From 19e86a96579c439b6cf02ff0022c6c4e8a9e92d8 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Sat, 10 Oct 2026 23:53:43 +0200 Subject: [PATCH] Fix to wrap bytebox --- ui-lib.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui-lib.pl b/ui-lib.pl index 5ffc3d9bb..dd211a96b 100755 --- a/ui-lib.pl +++ b/ui-lib.pl @@ -1129,14 +1129,15 @@ if ($bytes ne "") { $bytes =~ s/(\.\d*?[1-9])0+$/$1/; } $size = &ui_max_text_width($size || 8); -return &ui_textbox($name, $bytes, $size, $dis, undef, $tags)." ". +return &ui_tag('span', + &ui_textbox($name, $bytes, $size, $dis, undef, $tags)." ". &ui_select($name."_units", $units, [ [ 1, $text{"nice_size_b"} ], [ 1024, $text{"nice_size_kiB"} ], [ 1024*1024, $text{"nice_size_MiB"} ], [ 1024*1024*1024, $text{"nice_size_GiB"} ], [ 1024*1024*1024*1024, $text{"nice_size_TiB"} ], - [ 1024*1024*1024*1024*1024, $text{"nice_size_PiB"} ] ], undef, undef, undef, $dis); + [ 1024*1024*1024*1024*1024, $text{"nice_size_PiB"} ] ], undef, undef, undef, $dis), { class => 'ui_bytesbox' }); } =head2 ui_upload(name, size, [disabled?], [tags])