fix(ListView): subject field width issue

This commit is contained in:
Ejaaz Khan 2025-11-04 16:02:54 +05:30
parent 53e7d2ffd0
commit b9d3711d66
3 changed files with 3 additions and 3 deletions

View file

@ -997,7 +997,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
* If the length of the text is not available, it defaults to a length of 22.5.
*/
let textLength = $(column_html).text()?.trim()?.length || 22.5;
let calculatedWidth = (textLength * 10) / 1.3;
let calculatedWidth = (textLength * 10) / 1.3 + (col.type == "Subject" ? 30 : 0);
/**
* Updates the `column_max_widths` object by setting the maximum width for a specific column (fieldname).

View file

@ -98,7 +98,7 @@
}
.frappe-list {
margin: var(--margin-xs) var(--margin-md);
margin: 0 var(--margin-md);
.result.has-assign-to {
.list-row .level-right {
flex: 0 0 180px;

View file

@ -127,7 +127,7 @@
.form-group {
padding: 0 10px 0 0;
margin: 5px 0;
margin: 8px 0;
}
.checkbox {
margin-top: 4px;