diff --git a/addons/web_editor/static/src/js/widgets.js b/addons/web_editor/static/src/js/widgets.js index 7e0a3ad103a..240a61b0458 100644 --- a/addons/web_editor/static/src/js/widgets.js +++ b/addons/web_editor/static/src/js/widgets.js @@ -471,8 +471,8 @@ var ImageDialog = Widget.extend({ this.$('.existing-attachments').replaceWith(QWeb.render('web_editor.dialog.image.existing.content', {rows: rows})); this.parent.$('.pager') - .find('li.previous').toggleClass('disabled', (from === 0)).end() - .find('li.next').toggleClass('disabled', (from + per_screen >= records.length)); + .find('li.previous a').toggleClass('disabled', (from === 0)).end() + .find('li.next a').toggleClass('disabled', (from + per_screen >= records.length)); this.$el.find('.o_image').each(function () { var $div = $(this); diff --git a/addons/web_editor/static/src/less/web_editor.ui.components.less b/addons/web_editor/static/src/less/web_editor.ui.components.less index 93414884256..85e94cea7fe 100644 --- a/addons/web_editor/static/src/less/web_editor.ui.components.less +++ b/addons/web_editor/static/src/less/web_editor.ui.components.less @@ -215,16 +215,15 @@ body .modal { width: 80%; .modal-body { + .nav-tabs .active > a:not([href="#editor-media-icon"]) { + background-color: @o-we-color-paper; + } + li.search { float: right; - ul.pager { - margin: 0; - > li > a { - border-radius: 0px; - margin-left: 2px; - padding: 6px 14px; - } + ul.pager li:last-child{ + margin-left: 2px; } .form-group { position: relative; diff --git a/addons/web_editor/static/src/xml/editor.xml b/addons/web_editor/static/src/xml/editor.xml index e8fdacc42d3..db96622cac8 100644 --- a/addons/web_editor/static/src/xml/editor.xml +++ b/addons/web_editor/static/src/xml/editor.xml @@ -53,11 +53,11 @@