Merge pull request #34424 from iamejaaz/list-view-height-fixes

fix: grid height overflow on y-axis
This commit is contained in:
Ejaaz Khan 2025-10-16 10:20:22 +05:30 committed by GitHub
commit 9724a6e0e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 9 deletions

View file

@ -451,10 +451,9 @@ frappe.views.BaseList = class BaseList {
set_result_height() {
this.$result[0].style.removeProperty("height");
// place it at the footer of the page
let result_element_dom = this.$result[0].getBoundingClientRect();
const resultContainerHeight =
window.innerHeight -
this.$result.get(0).offsetTop -
this.$paging_area.get(0).offsetHeight;
window.innerHeight - this.$paging_area.get(0).offsetHeight - result_element_dom.top;
this.$result.parent(".result-container").css({
height: resultContainerHeight + "px",
});

View file

@ -804,11 +804,9 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
}
if (frappe.is_mobile() && col.type == "Field" && [3, 4].includes(i)) {
left_html += `<div class="mobile-layout">${this.get_column_html(
col,
doc,
true
)}</div>`;
left_html += `<div class="mobile-layout ${
i == 3 ? "mobile-layout-seperator" : ""
}">${this.get_column_html(col, doc, true)}</div>`;
} else {
left_html += this.get_column_html(col, doc, false);
}

View file

@ -649,7 +649,8 @@ input.list-header-checkbox {
padding-left: 37px;
}
}
.mobile-layout:not(.mobile-layout ~ .mobile-layout) {
.mobile-layout-seperator:not(.mobile-layout-seperator
~ .mobile-layout-seperator) {
padding-left: 27px;
margin-right: 6px;