Skip to content
Snippets Groups Projects
Commit 215a216e authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

force default dimensions, fixes #2636

Closes #2636

Merge request studip/studip!1792
parent 7eaf4e04
No related branches found
No related tags found
No related merge requests found
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
<? if ($action['type'] === 'link'): ?> <? if ($action['type'] === 'link'): ?>
<a href="<?= htmlReady($action['link']) ?>" <?= arrayToHtmlAttributes($action['attributes'] + ['title' => $action['label']]) ?>> <a href="<?= htmlReady($action['link']) ?>" <?= arrayToHtmlAttributes($action['attributes'] + ['title' => $action['label']]) ?>>
<? if ($action['icon']): ?> <? if ($action['icon']): ?>
<?= $action['icon']->asImg(false) ?> <?= $action['icon']->asImg() ?>
<? else: ?> <? else: ?>
<?= htmlReady($action['label']) ?> <?= htmlReady($action['label']) ?>
<? endif ?> <? endif ?>
</a> </a>
<? elseif ($action['type'] === 'button'): ?> <? elseif ($action['type'] === 'button'): ?>
<? if ($action['icon']): ?> <? 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: ?> <? else: ?>
<button name="<?= htmlReady($action['name']) ?>" <?= arrayToHtmlAttributes($action['attributes']) ?>> <button name="<?= htmlReady($action['name']) ?>" <?= arrayToHtmlAttributes($action['attributes']) ?>>
<?= htmlReady($action['label']) ?> <?= htmlReady($action['label']) ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment