[17.0][FIX] web_responsive: disable default file preview

This commit is contained in:
Taras Shabaranskyi
2024-04-14 21:05:31 +03:00
parent bc43787c65
commit c5f7b0a7ce
5 changed files with 23 additions and 12 deletions

View File

@@ -0,0 +1,13 @@
/** @odoo-module **/
/* Copyright 2024 Taras Shabaranskyi
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
import {patch} from "@web/core/utils/patch";
import {FormRenderer} from "@web/views/form/form_renderer";
export const unpatchDisableFilePreview = patch(FormRenderer.prototype, {
/** @returns {Boolean}*/
hasFileViewer() {
return false;
},
});

View File

@@ -10,6 +10,7 @@
&::-webkit-scrollbar {
width: 10px;
height: 10px;
}
&::-webkit-scrollbar-thumb {