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:
commit
f9e51b7abf
4 changed files with 4 additions and 4 deletions
|
|
@ -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.
|
* 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 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).
|
* Updates the `column_max_widths` object by setting the maximum width for a specific column (fieldname).
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-secondary btn-default btn-sm hide"></button>
|
<button class="btn btn-secondary btn-default btn-sm hide"></button>
|
||||||
<div class="actions-btn-group hide">
|
<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>
|
||||||
<span class="hidden-xs actions-btn-group-label">{%= __("Actions") %}</span>
|
<span class="hidden-xs actions-btn-group-label">{%= __("Actions") %}</span>
|
||||||
<svg class="icon icon-xs">
|
<svg class="icon icon-xs">
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.frappe-list {
|
.frappe-list {
|
||||||
margin: var(--margin-xs) var(--margin-md);
|
margin: 0 var(--margin-md);
|
||||||
.result.has-assign-to {
|
.result.has-assign-to {
|
||||||
.list-row .level-right {
|
.list-row .level-right {
|
||||||
flex: 0 0 180px;
|
flex: 0 0 180px;
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
|
|
||||||
.form-group {
|
.form-group {
|
||||||
padding: 0 10px 0 0;
|
padding: 0 10px 0 0;
|
||||||
margin: 5px 0;
|
margin: 8px 0;
|
||||||
}
|
}
|
||||||
.checkbox {
|
.checkbox {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue