Merge pull request #37989 from nikkothari22/fix-indicator-spacing

fix: permission indicator spacing in list view
This commit is contained in:
Ejaaz Khan 2026-03-13 19:32:01 +05:30 committed by GitHub
commit e2786c2d8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 17 deletions

View file

@ -182,18 +182,12 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
const match_rules_list = frappe.perm.get_match_rules(this.doctype);
if (match_rules_list.length) {
this.restricted_list = $(
`<button class="btn btn-xs restricted-button flex align-center ${
frappe.is_mobile() ? "ml-2" : ""
}">
`<button class="btn btn-xs restricted-button flex align-center">
${frappe.utils.icon("restriction", "xs")}
</button>`
)
.click(() => this.show_restrictions(match_rules_list))
.appendTo(
frappe.is_mobile()
? this.page.page_form.find(".filter-section")
: this.page.page_form
);
.appendTo(this.page.page_form.find(".filter-section"));
}
}

View file

@ -546,8 +546,8 @@ input.list-header-checkbox {
}
.restricted-button {
margin-top: var(--margin-xs);
height: var(--margin-xl);
margin: var(--margin-xs) 0 0 var(--margin-sm);
height: 29px;
.icon {
width: 14px;
@ -563,13 +563,6 @@ input.list-header-checkbox {
}
}
.frappe-rtl {
.restricted-button {
margin: auto auto auto 5px;
direction: ltr;
}
}
// img {
// max-height: 100%;
// }