From 215a216ef3bb6525fd54b4d8a1f5de4e7c6bfa17 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Fri, 12 May 2023 11:06:49 +0000 Subject: [PATCH] force default dimensions, fixes #2636 Closes #2636 Merge request studip/studip!1792 --- templates/shared/action-menu-single.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/shared/action-menu-single.php b/templates/shared/action-menu-single.php index 05c74962b25..a34a01e69dc 100644 --- a/templates/shared/action-menu-single.php +++ b/templates/shared/action-menu-single.php @@ -15,14 +15,14 @@ <? if ($action['type'] === 'link'): ?> <a href="<?= htmlReady($action['link']) ?>" <?= arrayToHtmlAttributes($action['attributes'] + ['title' => $action['label']]) ?>> <? if ($action['icon']): ?> - <?= $action['icon']->asImg(false) ?> + <?= $action['icon']->asImg() ?> <? else: ?> <?= htmlReady($action['label']) ?> <? endif ?> </a> <? elseif ($action['type'] === 'button'): ?> <? if ($action['icon']): ?> - <?= $action['icon']->asInput(false, $action['attributes'] + ['name' => $action['name'], 'title' => $action['label']]) ?> + <?= $action['icon']->asInput($action['attributes'] + ['name' => $action['name'], 'title' => $action['label']]) ?> <? else: ?> <button name="<?= htmlReady($action['name']) ?>" <?= arrayToHtmlAttributes($action['attributes']) ?>> <?= htmlReady($action['label']) ?> -- GitLab