Merge pull request #38997 from iamejaaz/38971-navigation-button
fix(ListView): add border to the right
This commit is contained in:
commit
c3c599cefa
1 changed files with 5 additions and 4 deletions
|
|
@ -1108,11 +1108,12 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
|
||||
// if no scroll then remove borders
|
||||
let list_row = this.$result.find(".list-row-container .list-row").first();
|
||||
let result_container_width = this.$result.width();
|
||||
let left_width = list_row.find(".level-left").width();
|
||||
let right_width = list_row.find(".level-right").width();
|
||||
let frappe_list_width = this.$frappe_list.width();
|
||||
let left_width = list_row.find(".level-left").first().width();
|
||||
let right_width = list_row.find(".level-right").first().width();
|
||||
|
||||
if (result_container_width - right_width > left_width) {
|
||||
// if listview is not scrollable then hide border
|
||||
if (left_width < frappe_list_width - right_width) {
|
||||
this.$result.find(".list-row-container .list-row .level-right").addClass("border-0");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue