@@ -101,6 +101,9 @@ | |||||
.grid-body .editable-row input[data-fieldtype="Currency"] { | .grid-body .editable-row input[data-fieldtype="Currency"] { | ||||
text-align: right; | text-align: right; | ||||
} | } | ||||
.grid-body .grid-static-col[data-fieldtype="Code"] .static-area { | |||||
margin-top: -10px; | |||||
} | |||||
@media (max-width: 767px) { | @media (max-width: 767px) { | ||||
.grid-body .btn-open-row { | .grid-body .btn-open-row { | ||||
margin-top: 0px; | 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>') | $col = $('<div class="col grid-static-col col-xs-'+colsize+' '+add_class+'"></div>') | ||||
.attr("data-fieldname", df.fieldname) | .attr("data-fieldname", df.fieldname) | ||||
.attr("data-fieldtype", df.fieldtype) | |||||
.data("df", df) | .data("df", df) | ||||
.appendTo(this.row) | .appendTo(this.row) | ||||
.on('click', function() { | .on('click', function() { | ||||
@@ -9,9 +9,9 @@ | |||||
style="margin-left: 7px;"> | style="margin-left: 7px;"> | ||||
{%= __("Insert Above") %}</button> | {%= __("Insert Above") %}</button> | ||||
<button class="btn btn-danger btn-xs pull-right grid-delete-row"> | <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> | style="padding-bottom: 2px; margin-top: 1px;"></i> | ||||
<span class="hidden-xs octicon octicon-x"></span></button> | |||||
</button> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="grid-form-body"> | <div class="grid-form-body"> | ||||
@@ -130,8 +130,12 @@ | |||||
input[data-fieldtype="Int"], input[data-fieldtype="Float"], input[data-fieldtype="Currency"] { | input[data-fieldtype="Int"], input[data-fieldtype="Float"], input[data-fieldtype="Currency"] { | ||||
text-align: right; | text-align: right; | ||||
} | } | ||||
} | |||||
.grid-static-col[data-fieldtype="Code"] .static-area { | |||||
margin-top: -10px; | |||||
} | } | ||||
} | } | ||||
@media (max-width: 767px) { | @media (max-width: 767px) { | ||||