Merge pull request #34584 from iamejaaz/ui-ux-fixes-list-form

fix(ListView): minor spacing fixes in list view and button
This commit is contained in:
Ejaaz Khan 2025-11-04 17:00:57 +05:30 committed by GitHub
commit f9e51b7abf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 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

@ -52,7 +52,7 @@
</div>
<button class="btn btn-secondary btn-default btn-sm hide"></button>
<div class="actions-btn-group hide">
<button type="button" class="btn btn-primary btn-sm" data-toggle="dropdown" aria-expanded="false">
<button type="button" class="btn btn-primary btn-sm justify-center" data-toggle="dropdown" aria-expanded="false">
<span>
<span class="hidden-xs actions-btn-group-label">{%= __("Actions") %}</span>
<svg class="icon icon-xs">

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;