Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add classes to make menu elements tall as parent #547

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modules/ps_mainmenu/ps_mainmenu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
{if $nodes|count}
<ul
{if $depth === 0}id="top-menu"{/if}
class="{if $depth === 0}main-menu__tree{else if $depth === 1}row row-cols-4 gy-3{else}submenu{/if}"
class="{if $depth === 0}main-menu__tree h-100{else if $depth === 1}row row-cols-4 gy-3{else}submenu{/if}"
data-depth="{$depth}"
>
{foreach from=$nodes item=node}
<li
class="{$node.type}{if $node.current} current{/if}{if $depth === 0} main-menu__tree__item{/if}"
class="{$node.type}{if $node.current} current{/if}{if $depth === 0} main-menu__tree__item d-flex align-items-center h-100{/if}"
id="{$node.page_identifier}"
>
{if $depth > 1 && $node.children|count}
Expand Down Expand Up @@ -104,8 +104,8 @@
{/if}
{/function}

<div class="main-menu col-xl col-auto">
<div class="d-none d-xl-block position-static js-menu-desktop">
<div class="main-menu col-xl col-auto d-flex align-items-center">
<div class="d-none d-xl-block position-static js-menu-desktop h-100">
{desktopMenu nodes=$menu.children}
</div>

Expand Down
2 changes: 1 addition & 1 deletion modules/ps_searchbar/ps_searchbar.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* International Registered Trademark & Property of PrestaShop SA
*}

<div id="_desktop_search" class="order-2 ms-auto col-auto d-none d-md-flex">
<div id="_desktop_search" class="order-2 ms-auto col-auto d-none d-md-flex align-items-center">
<div id="search_widget" class="search-widgets js-search-widget" data-search-controller-url="{$search_controller_url}">
<form method="get" action="{$search_controller_url}">
<input type="hidden" name="controller" value="search">
Expand Down
2 changes: 1 addition & 1 deletion templates/_partials/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{block name='header_bottom'}
<div class="{$headerBottomName}">
<div class="container-md {$headerBottomName}__container">
<div class="row align-items-center gx-2 {$headerBottomName}__row">
<div class="row gx-2 {$headerBottomName}__row">
rodriciru marked this conversation as resolved.
Show resolved Hide resolved
<div class="col-auto logo order-xl-1 ms-lg-0 ms-2 me-lg-0 me-auto">
rodriciru marked this conversation as resolved.
Show resolved Hide resolved
{if $shop.logo_details}
{if $page.page_name == 'index'}<h1 class="{$headerBottomName}__h1 mb-0">{/if}
Expand Down
Loading