chore: fix linters
This commit is contained in:
parent
32da8cb530
commit
83c2f6e53a
6 changed files with 22 additions and 13 deletions
|
|
@ -362,12 +362,12 @@ export default class Grid {
|
|||
grid: this,
|
||||
show_search: true,
|
||||
});
|
||||
this.header_search.row.addClass("filter-row")
|
||||
if (this.header_search.show_search || this.header_search.show_search_row()){
|
||||
this.header_search.row.addClass("filter-row");
|
||||
if (this.header_search.show_search || this.header_search.show_search_row()) {
|
||||
$(this.parent).find(".grid-heading-row").addClass("with-filter");
|
||||
} else{
|
||||
} else {
|
||||
$(this.parent).find(".grid-heading-row").removeClass("with-filter");
|
||||
}
|
||||
}
|
||||
|
||||
this.filter_applied && this.update_search_columns();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -516,7 +516,9 @@ export default class GridRow {
|
|||
|
||||
fields += `
|
||||
<div class='control-input flex align-center form-control fields_order sortable-handle sortable'
|
||||
style='display: block; margin-bottom: 5px; padding: 0 8px; cursor: pointer; height: 32px;' data-fieldname='${docfield.fieldname}'
|
||||
style='display: block; margin-bottom: 5px; padding: 0 8px; cursor: pointer; height: 32px;' data-fieldname='${
|
||||
docfield.fieldname
|
||||
}'
|
||||
data-label='${docfield.label}' data-type='${docfield.fieldtype}'>
|
||||
|
||||
<div class='row'>
|
||||
|
|
@ -526,8 +528,10 @@ export default class GridRow {
|
|||
<div class='col-md-8' style='padding-right:0px; padding-top: 5px;'>
|
||||
${__(docfield.label)}
|
||||
</div>
|
||||
<div class='col-md-2' style='padding-left:0px; padding-top: 2px; margin-top:-2px;' title='${__("Columns")}'>
|
||||
<input class='form-control column-width my-1 input-xs text-right'
|
||||
<div class='col-md-2' style='padding-left:0px; padding-top: 2px; margin-top:-2px;' title='${__(
|
||||
"Columns"
|
||||
)}'>
|
||||
<input class='form-control column-width my-1 input-xs text-right'
|
||||
style='height: 24px; max-width: 80px; background: var(--bg-color);'
|
||||
value='${docfield.columns || cint(d.columns)}'
|
||||
data-fieldname='${docfield.fieldname}' style='background-color: var(--modal-bg); display: inline'>
|
||||
|
|
|
|||
|
|
@ -986,7 +986,6 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
</span>
|
||||
`;
|
||||
|
||||
|
||||
const like = div.querySelector(".like-action");
|
||||
like.setAttribute("data-liked-by", doc._liked_by || "[]");
|
||||
like.setAttribute("data-doctype", this.doctype);
|
||||
|
|
@ -1046,7 +1045,9 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
];
|
||||
const title = docstatus_description[doc.docstatus || 0];
|
||||
if (indicator) {
|
||||
return `<span class="indicator-pill ${indicator[1]} filterable no-indicator-dot ellipsis"
|
||||
return `<span class="indicator-pill ${
|
||||
indicator[1]
|
||||
} filterable no-indicator-dot ellipsis"
|
||||
data-filter='${indicator[2]}' title='${title}'>
|
||||
<span class="ellipsis"> ${__(indicator[0])}</span>
|
||||
</span>`;
|
||||
|
|
|
|||
|
|
@ -1215,7 +1215,11 @@ Object.assign(frappe.utils, {
|
|||
size_class = `icon-${size}`;
|
||||
}
|
||||
return `<svg class="${
|
||||
is_espresso ? icon_name.startsWith("es-solid") ? "es-icon es-solid" : "es-icon es-line" : "icon"
|
||||
is_espresso
|
||||
? icon_name.startsWith("es-solid")
|
||||
? "es-icon es-solid"
|
||||
: "es-icon es-line"
|
||||
: "icon"
|
||||
} ${svg_class} ${size_class}" style="${icon_style}">
|
||||
<use class="${icon_class}" href="${icon_name}"></use>
|
||||
</svg>`;
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@
|
|||
margin-left: -5px;
|
||||
margin-top: 0px;
|
||||
@include get_textstyle("base", "regular");
|
||||
|
||||
.dt-cell {
|
||||
|
||||
.dt-cell {
|
||||
color: var(--text-color) !important;
|
||||
background-color: var(--bg-color) !important;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
--text-2xs: 12px;
|
||||
--text-xs: 12px;
|
||||
--text-sm: 13px;
|
||||
--text-md: 13px; // alias
|
||||
--text-md: 13px; // alias
|
||||
--text-base: 14px;
|
||||
--text-lg: 16px;
|
||||
--text-xl: 18px;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue