Merge pull request #37055 from iamejaaz/36620-breadcrumb-cut

fix(firefox): inconsistent behavior of breadcrumb
This commit is contained in:
Ejaaz Khan 2026-02-16 12:59:53 +05:30 committed by GitHub
commit 23f6b1189e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -660,7 +660,7 @@ frappe.ui.form.Form = class FrappeForm {
configure_breadcrumb_width() {
let el = this.page.page_actions[0];
const rect = el.getBoundingClientRect();
let is_outside = rect.right > document.documentElement.clientWidth;
let is_outside = cint(rect.right) > cint(document.documentElement.clientWidth);
if (is_outside) {
// check if the default actions are outside of the screen