fix: breadcrumb title UI

This commit is contained in:
Ejaaz Khan 2026-01-13 17:26:45 +05:30
parent a7a6ce93a6
commit db714e8be6
2 changed files with 3 additions and 3 deletions

View file

@ -666,10 +666,11 @@ frappe.ui.form.Form = class FrappeForm {
.parent()
.css("max-width", overflow ? `calc(50% - ${overflow}px)` : "50%");
let breadcrumb = this.page.$title_area.find("ul li.ellipsis");
if (!breadcrumb[0]?.clientWidth) {
if (cint(breadcrumb[0]?.clientWidth) <= 30) {
// if workspce sodebar is not visible
$(breadcrumb[0]).hide();
if (!breadcrumb[1]?.clientWidth) {
if (cint(breadcrumb[1]?.clientWidth) <= 30) {
// if doctype sodebar is not visible
$(breadcrumb[1]).hide();

View file

@ -8,7 +8,6 @@ body:not([data-route^="Form"]) {
display: flex;
align-items: center;
padding: 0 15px;
max-width: 50%;
.sidebar-toggle-btn {
display: flex;
margin-right: var(--margin-sm);