mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Fixed bad html output in menu particle
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
- Fixed issue where Settings in Outlines overrides could potentially never remove the stored `yaml`, making it impossible to reset an entire section to Default (#929)
|
||||
- Fixed issue where Tag fields wouldn't trigger the indicator change
|
||||
- Fixed Collections not loading the default values defined in the `yaml`
|
||||
- Fixed bad html output in menu particle
|
||||
2. [Joomla](#joomla)
|
||||
3. [](#bugfix)
|
||||
- Disable caching from Particle Module by default (#925)
|
||||
|
||||
@@ -6,10 +6,8 @@
|
||||
|
||||
{% macro getCustomWidth(item, menu, mode, dropdown_type) -%}
|
||||
{%- if (item.width|default('auto') != 'auto') and not (dropdown_type == 'fullwidth' and item.level > 1) -%}
|
||||
{%- if mode == 'item' -%}
|
||||
style="position: relative;"
|
||||
{%- elseif mode == 'submenu' -%}
|
||||
style="width:{{ item.width|e }};" data-g-item-width="{{ item.width|e }}"
|
||||
{%- if mode == 'item' %} style="position: relative;"
|
||||
{%- elseif mode == 'submenu' %} style="width:{{ item.width|e }};" data-g-item-width="{{ item.width|e }}"
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- endmacro %}
|
||||
|
||||
Reference in New Issue
Block a user