3
0
Fork 0

Merge PR #1797 into 12.0

Signed-off-by pedrobaeza
12.0
OCA-git-bot 2021-02-02 08:29:10 +00:00
commit ad825683e7
6 changed files with 58 additions and 0 deletions

View File

@ -109,6 +109,10 @@ Features for computers:
.. image:: https://raw.githubusercontent.com/OCA/web/12.0/web_responsive/static/img/document_viewer.gif .. image:: https://raw.githubusercontent.com/OCA/web/12.0/web_responsive/static/img/document_viewer.gif
* Bigger checkboxes in list view
.. image:: https://raw.githubusercontent.com/OCA/web/12.0/web_responsive/static/img/big_checkboxes.gif
**Table of contents** **Table of contents**
.. contents:: .. contents::

View File

@ -81,3 +81,7 @@ Features for computers:
width preview clicking on the new maximize button. width preview clicking on the new maximize button.
.. image:: ../static/img/document_viewer.gif .. image:: ../static/img/document_viewer.gif
* Bigger checkboxes in list view
.. image:: ../static/img/big_checkboxes.gif

View File

@ -435,6 +435,9 @@ part for side-by-side reading instead of full screen. You can still put it on fu
width preview clicking on the new maximize button.</p> width preview clicking on the new maximize button.</p>
<img alt="https://raw.githubusercontent.com/OCA/web/12.0/web_responsive/static/img/document_viewer.gif" src="https://raw.githubusercontent.com/OCA/web/12.0/web_responsive/static/img/document_viewer.gif" /> <img alt="https://raw.githubusercontent.com/OCA/web/12.0/web_responsive/static/img/document_viewer.gif" src="https://raw.githubusercontent.com/OCA/web/12.0/web_responsive/static/img/document_viewer.gif" />
</li> </li>
<li><p class="first">Bigger checkboxes in list view</p>
<img alt="https://raw.githubusercontent.com/OCA/web/12.0/web_responsive/static/img/big_checkboxes.gif" src="https://raw.githubusercontent.com/OCA/web/12.0/web_responsive/static/img/big_checkboxes.gif" />
</li>
</ul> </ul>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

View File

@ -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 // Waiting Cursor
.oe_wait { .oe_wait {
cursor: progress; cursor: progress;

View File

@ -15,6 +15,7 @@ odoo.define('web_responsive', function (require) {
var RelationalFields = require('web.relational_fields'); var RelationalFields = require('web.relational_fields');
var Chatter = require('mail.Chatter'); var Chatter = require('mail.Chatter');
var DocumentViewer = require('mail.DocumentViewer'); var DocumentViewer = require('mail.DocumentViewer');
var ListRenderer = require('web.ListRenderer');
/* Hide AppDrawer in desktop and mobile modes. /* Hide AppDrawer in desktop and mobile modes.
@ -544,4 +545,17 @@ odoo.define('web_responsive', function (require) {
this.$el.addClass('o_responsive_document_viewer'); 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;
},
});
}); });