Merge pull request #33704 from iamejaaz/scrollable-list-view-fixes

fix(ListView): spacing issue when no content is present
This commit is contained in:
Ejaaz Khan 2025-08-19 17:36:58 +05:30 committed by GitHub
commit 98fcb0830e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -912,18 +912,14 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
</span>`;
} else if (df.fieldtype === "Link") {
html = `<a class="filterable ellipsis"
data-filter="${fieldname},=,${value}">
${_value}
</a>`;
data-filter="${fieldname},=,${value}">${_value}</a>`;
} else if (frappe.model.html_fieldtypes.includes(df.fieldtype)) {
html = `<span class="ellipsis">
${_value}
</span>`;
} else {
html = `<a class="filterable ellipsis"
data-filter="${fieldname},=,${frappe.utils.escape_html(value)}">
${format()}
</a>`;
data-filter="${fieldname},=,${frappe.utils.escape_html(value)}">${format()}</a>`;
}
return `<span class="ellipsis"

View file

@ -573,6 +573,10 @@ input.list-header-checkbox {
margin-right: 0px;
min-width: auto;
}
&:has(.filterable:empty) {
display: none;
padding-left: 37px;
}
}
.mobile-layout:not(.mobile-layout ~ .mobile-layout) {
padding-left: 27px;