fix(menu): avoid empty space
This commit is contained in:
parent
50740b6972
commit
99102c72a5
1 changed files with 7 additions and 4 deletions
|
|
@ -103,10 +103,13 @@ frappe.ui.menu = class ContextMenu {
|
|||
${iconMarkup}
|
||||
</div>
|
||||
<span class="menu-item-title">${__(item.label)}</span>
|
||||
<div class="menu-item-icon" style="margin-left:auto">
|
||||
${item.items && item.items.length ? frappe.utils.icon(`chevron-${chevron_direction}`) : ""}
|
||||
</div>
|
||||
|
||||
${
|
||||
item.items && item.items.length
|
||||
? `<div class="menu-item-icon" style="margin-left:auto">
|
||||
${frappe.utils.icon(`chevron-${chevron_direction}`)}
|
||||
</div>`
|
||||
: ""
|
||||
}
|
||||
</a>
|
||||
</div>`);
|
||||
if (!item.url) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue