[IMP] web: reverse the collapsed breadcrumb
The collapsed breadcrumb should list its older entry at the bottom, so that the reading direction is somewhat linear (start from bottom of dropdown, go up, then go right - instead if going down the breadcrumb then go back up before moving right). Part-of: odoo/odoo#116641
This commit is contained in:
committed by
Pierre Paridans
parent
012b01fb74
commit
8bcbdff415
@@ -80,7 +80,7 @@
|
||||
<t t-name="web.Breadcrumbs" owl="1">
|
||||
<t t-set="currentBreadcrumbs" t-value="breadcrumbs.slice(-1)"/>
|
||||
<t t-set="visiblePathBreadcrumbs" t-value="breadcrumbs.slice(-3, -1)"/>
|
||||
<t t-set="collapsedBreadcrumbs" t-value="breadcrumbs.slice(0, -3)"/>
|
||||
<t t-set="collapsedBreadcrumbs" t-value="breadcrumbs.slice(0, -3).reverse()"/>
|
||||
<t t-set="breadcrumb" t-value="currentBreadcrumbs[0] || {}"/>
|
||||
|
||||
<div t-if="collapsedBreadcrumbs.length || visiblePathBreadcrumbs.length" class="d-flex flex-row flex-md-column align-self-stretch justify-content-between min-w-0">
|
||||
|
||||
Reference in New Issue
Block a user