mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_responsive: Bigger checkboxes in list view
This commit is contained in:
@@ -618,6 +618,39 @@ html .o_web_client .o_main .o_main_content {
|
||||
}
|
||||
}
|
||||
|
||||
// Big checkboxes
|
||||
.o_list_view {
|
||||
.o_list_record_selector {
|
||||
.custom-checkbox {
|
||||
margin-right: 10px;
|
||||
.custom-control-label {
|
||||
top: -19px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.o_data_cell {
|
||||
.custom-checkbox .custom-control-label {
|
||||
top: -6px;
|
||||
}
|
||||
}
|
||||
.custom-checkbox {
|
||||
margin-right: 10px;
|
||||
|
||||
.custom-control-label {
|
||||
&::after {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
&::before {
|
||||
outline: none !important;
|
||||
border: 1px solid #4c4c4c;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Waiting Cursor
|
||||
.oe_wait {
|
||||
cursor: progress;
|
||||
|
||||
@@ -15,6 +15,7 @@ odoo.define('web_responsive', function (require) {
|
||||
var RelationalFields = require('web.relational_fields');
|
||||
var Chatter = require('mail.Chatter');
|
||||
var DocumentViewer = require('mail.DocumentViewer');
|
||||
var ListRenderer = require('web.ListRenderer');
|
||||
|
||||
|
||||
/* Hide AppDrawer in desktop and mobile modes.
|
||||
@@ -544,4 +545,17 @@ odoo.define('web_responsive', function (require) {
|
||||
this.$el.addClass('o_responsive_document_viewer');
|
||||
},
|
||||
});
|
||||
|
||||
// List Renderer: Big checkboxes
|
||||
ListRenderer.include({
|
||||
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
_renderSelector: function () {
|
||||
var $elm = this._super.apply(this, arguments);
|
||||
$elm.find(".custom-control-label").html('');
|
||||
return $elm;
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user