Merge pull request #34998 from iamejaaz/awesomebar-fixes

fix(awesomebar): add icon for recent items
This commit is contained in:
Ejaaz Khan 2025-12-02 10:38:52 +05:30 committed by GitHub
commit 3ad691c47d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -47,7 +47,7 @@ frappe.search.AwesomeBar = class AwesomeBar {
<span class="help-item">${frappe.utils.icon("corner-down-left")}</span>
<span>${__("to select")}</span>
</span>
<span class="help-item">${__("esc")}</span>
<span class="help-item help-item-esc">${__("esc")}</span>
<span>${__("to close")}</span>
</div>
<div class="pointer">${frappe.utils.icon("circle-question-mark")}</div>

View file

@ -108,7 +108,9 @@ frappe.search.utils = {
out.label = icon + __(view_name.bold()) + " " + labelSuffix;
out.value = __(view_name) + " " + labelSuffix;
} else if (match[0]) {
out.label = frappe.utils.escape_html(match[0]).bold();
out.label =
me.make_icon(me.recent ? "circle-dashed" : "file-text") +
frappe.utils.escape_html(match[0]).bold();
out.value = match[0];
} else {
console.log("Illegal match", match);

View file

@ -140,6 +140,9 @@
margin-right: 0.25rem;
border-radius: 4px;
}
.help-item-esc {
padding: 2px 4px;
}
}
}