Selaa lähdekoodia

[fix] editable grid code field margin

version-14
Anand Doshi 9 vuotta sitten
vanhempi
commit
0bc9b82e68
4 muutettua tiedostoa jossa 10 lisäystä ja 2 poistoa
  1. +3
    -0
      frappe/public/css/form_grid.css
  2. +1
    -0
      frappe/public/js/frappe/form/grid.js
  3. +2
    -2
      frappe/public/js/frappe/form/templates/grid_form.html
  4. +4
    -0
      frappe/public/less/form_grid.less

+ 3
- 0
frappe/public/css/form_grid.css Näytä tiedosto

@@ -101,6 +101,9 @@
.grid-body .editable-row input[data-fieldtype="Currency"] {
text-align: right;
}
.grid-body .grid-static-col[data-fieldtype="Code"] .static-area {
margin-top: -10px;
}
@media (max-width: 767px) {
.grid-body .btn-open-row {
margin-top: 0px;


+ 1
- 0
frappe/public/js/frappe/form/grid.js Näytä tiedosto

@@ -688,6 +688,7 @@ frappe.ui.form.GridRow = Class.extend({

$col = $('<div class="col grid-static-col col-xs-'+colsize+' '+add_class+'"></div>')
.attr("data-fieldname", df.fieldname)
.attr("data-fieldtype", df.fieldtype)
.data("df", df)
.appendTo(this.row)
.on('click', function() {


+ 2
- 2
frappe/public/js/frappe/form/templates/grid_form.html Näytä tiedosto

@@ -9,9 +9,9 @@
style="margin-left: 7px;">
{%= __("Insert Above") %}</button>
<button class="btn btn-danger btn-xs pull-right grid-delete-row">
<i class="octicon octicon-trashcan visible-xs"
<i class="octicon octicon-trashcan"
style="padding-bottom: 2px; margin-top: 1px;"></i>
<span class="hidden-xs octicon octicon-x"></span></button>
</button>
</div>
</div>
<div class="grid-form-body">


+ 4
- 0
frappe/public/less/form_grid.less Näytä tiedosto

@@ -130,8 +130,12 @@
input[data-fieldtype="Int"], input[data-fieldtype="Float"], input[data-fieldtype="Currency"] {
text-align: right;
}
}

.grid-static-col[data-fieldtype="Code"] .static-area {
margin-top: -10px;
}

}

@media (max-width: 767px) {


Ladataan…
Peruuta
Tallenna