[IMP] web: editable list: change handle icon to fa-sort

task-2413274
This commit is contained in:
Mohammed Shekha
2020-12-22 11:21:03 +00:00
committed by Aaron Bohy
parent 905ea9bdc6
commit e3be9d183f
4 changed files with 13 additions and 2 deletions
@@ -1498,7 +1498,7 @@ var ListFieldText = FieldText.extend({
var HandleWidget = AbstractField.extend({
description: _lt("Handle"),
noLabel: true,
className: 'o_row_handle fa fa-arrows ui-sortable-handle',
className: 'o_row_handle fa fa-sort ui-sortable-handle',
widthInList: '33px',
tagName: 'span',
supportedFieldTypes: ['integer'],
@@ -1092,6 +1092,7 @@ ListRenderer.include({
items: '> tr.o_data_row',
helper: 'clone',
handle: '.o_row_handle',
cursor: "grabbing",
stop: function (event, ui) {
// update currentID taking moved line into account
if (self.currentRow !== null) {
+7 -1
View File
@@ -278,7 +278,13 @@
// Handle widget
&.o_row_handle {
cursor: ns-resize;
cursor: grab;
color: #adb5bd;
text-align: center;
width: 100%;
&:hover {
color: #666666;
}
}
&.o_field_selection_badge {
@@ -132,6 +132,10 @@
max-width: map-get($container-max-widths, md) - (2 * $o-horizontal-padding);
}
.o_field_x2many .o_list_table .o_handle_cell .o_row_handle {
padding: 0.3rem;
}
@include media-breakpoint-up(vsm, $o-extra-grid-breakpoints) {
.o_row {
> .o_field_widget, > div {