[fix] editable grid code field margin
This commit is contained in:
parent
3e274b9e01
commit
0bc9b82e68
4 changed files with 11 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue