Applied solution for image size issues in toggle bar
This commit is contained in:
parent
cba95e4423
commit
faf7c5462e
|
@ -3711,8 +3711,8 @@ function ui_toggle(
|
|||
// Generate unique Id.
|
||||
$uniqid = uniqid('');
|
||||
|
||||
$image_a = html_print_image($img_a, true, false, true);
|
||||
$image_b = html_print_image($img_b, true, false, true);
|
||||
$image_a = html_print_image($img_a, true, [ 'style' => 'object-fit: contain;' ], true);
|
||||
$image_b = html_print_image($img_b, true, [ 'style' => 'object-fit: contain;' ], true);
|
||||
// Options.
|
||||
if ($hidden_default) {
|
||||
$style = 'display:none';
|
||||
|
@ -3736,6 +3736,7 @@ function ui_toggle(
|
|||
$original,
|
||||
true,
|
||||
[
|
||||
'style' => 'object-fit: contain;',
|
||||
'title' => $title,
|
||||
'id' => 'image_'.$uniqid,
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue