Skip to content

Commit

Permalink
the placement of the icon of the dropdown menu from the main navigati…
Browse files Browse the repository at this point in the history
…on menu items has been improved
  • Loading branch information
sschreier committed Mar 2, 2024
1 parent f564020 commit f4b3bf8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sschreier/sschreierdropdownmenu",
"description": "Dropdown Menü",
"version": "1.1.1",
"version": "1.1.2",
"type": "shopware-platform-plugin",
"license": "proprietary",
"authors": [
Expand Down
11 changes: 11 additions & 0 deletions src/Resources/app/storefront/src/scss/dropdown-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ $sschreier-dropdown-menu-distance-text-to-left: 16 !default;

> .main-navigation-link-text {
padding: 0 0 3px 0;

.main-navigation-link-text-inner {
padding-right: 20px;

span {
&.icon {
position: absolute;
margin-left: 3px;
}
}
}
}

&.active {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="main-navigation-link-text
{% block layout_main_navigation_menu_item_folder_link_text_cssclasses %}{% endblock %}"
title="{{ name }}">
<span itemprop="name">
<span class="main-navigation-link-text-inner" itemprop="name">
{{ name }}
{% if treeItem.children|length > 0 %}
{% block layout_main_navigation_menu_item_folder_icon %}
Expand All @@ -41,7 +41,7 @@
itemprop="url"
{% if category_linknewtab(category) %}target="_blank"{% endif %}
title="{{ name }}">
<span itemprop="name">
<span class="main-navigation-link-text-inner" itemprop="name">
{% if treeItem.children|length > 0 %}
{% block layout_main_navigation_menu_item_no_folder_icon_before %}
{% if config('SschreierDropdownMenu.config.dropdownMenuMultiLineOpenLastChildToLeft') or config('SschreierDropdownMenu.config.dropdownMenuAlwaysOpenToLeft') %}
Expand Down

0 comments on commit f4b3bf8

Please sign in to comment.