Skip to content

Commit

Permalink
Merge branch 'feature/105672' into test/stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Martyna Maciejewska committed Jun 19, 2024
2 parents fa9c7a3 + f1e6886 commit 6a94670
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `width` and `height` attributes to menu node images (DEV-102271)
- Snowdog branding in admin panel (DEV-105762)
- Automatically open collapsed menu node when dragging another node inside (DEV-101986)
- Duplicate node functionality (DEV-104364)
### Fixed
- Impossible to change Cms block, Cms page link after selecting displayed block (DEV-104546)
### Updated
- vue-select to 3.20.0 (DEV-104546)

## [2.26.0] - 2024-03-29
### Fixed
Expand Down
6 changes: 3 additions & 3 deletions Model/TemplateResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ class TemplateResolver
* @var Registry
*/
private $registry;

/**
* @var Validator
*/
private $validator;

/**
* @var AssetRepository
*/
Expand Down Expand Up @@ -164,7 +164,7 @@ private function getTemplateList($nodeType = '', $defaultTemplateLabel = '')
continue;
}

$fileName = str_replace([$themeDir, '.' . $extension], '', $file);
$fileName = $this->ioFile->getPathInfo($file)['filename'];
if (!in_array($fileName, array_column($result, 'id'))) {
$result[] = ['id' => $fileName];
}
Expand Down
2 changes: 1 addition & 1 deletion view/adminhtml/web/vue/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
node = {
...node,
id: this.uuid(),
uuid: this.uuid(),
uuid: this.uuid()
};
if (node.columns?.length) {
node.columns = node.columns.map(this.setUniqueIds);
Expand Down
6 changes: 4 additions & 2 deletions view/frontend/templates/hyva-topmenu-desktop/menu.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ $uniqueId = '_' . uniqid();
class="snowdog-topmenu-desktop container lg:block"
aria-label="<?= $escaper->escapeHtmlAttr(__('Main menu')) ?>"
>
<ul class="relative flex justify-between h-20">
<ul
class="relative flex justify-between h-20"
@mouseleave="openSubmenuId = null"
>
<?php foreach ($block->getNodes() as $node): ?>
<?php
$childrenLevel = $node->getLevel() + 1;
Expand All @@ -75,7 +78,6 @@ $uniqueId = '_' . uniqid();
'bg-white rounded-t-lg shadow-md' : '<?= /* @noEscape */ !!$children ?>' && openSubmenuId === '<?= /* @noEscape */ (string) $nodeId ?>'
}"
@mouseenter="openSubmenuId = '<?= /* @noEscape */ (string) $nodeId ?>'"
@mouseleave="openSubmenuId = null"
@keydown.escape="onSubmenuEscape"
>
<div class="group uppercase [&>a]:py-7 [&>a]:!text-primary">
Expand Down

0 comments on commit 6a94670

Please sign in to comment.