mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[17.0][FIX] web_responsive: disable default file preview
This commit is contained in:
13
web_responsive/static/src/views/form/form_renderer.esm.js
Normal file
13
web_responsive/static/src/views/form/form_renderer.esm.js
Normal 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;
|
||||
},
|
||||
});
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
|
||||
Reference in New Issue
Block a user