We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed9762e commit f6be5d7Copy full SHA for f6be5d7
1 file changed
view/frontend/templates/component/debugger.phtml
@@ -20,9 +20,13 @@ use Magento\Framework\View\Element\Template;
20
21
$idConvertor = $viewModelFactory->create(IdConvertor::class);
22
$htmlId = $idConvertor->toElementId($block->getNameInLayout());
23
+$position = $block->getPosition();
24
+if (empty($position)) {
25
+ $position = 'bottom-0 right-0';
26
+}
27
?>
28
<div class="<?= $escaper->escapeHtml($css('')) ?>">
- <button x-show="invisible" class="fixed bottom-0 right-0 bg-orange-500 text-white p-4 z-20" @click="toggleVisibility">
29
+ <button x-show="invisible" class="<?= $escaper->escapeHtml($position . ' '.$css('fixed bg-orange-500 text-white p-4 z-20')) ?>" @click="toggleVisibility">
30
<?= $escaper->escapeHtml(__('Loki Debugger')) ?>
31
</button>
32
0 commit comments