From dfd98f49e7f2ab5c94dcae3af2d14750d301fa0a Mon Sep 17 00:00:00 2001 From: Samuel Degueldre Date: Thu, 24 Oct 2019 13:15:55 +0000 Subject: [IMP] web_editor: rework background-sizing option Previously, background size and position for snippets was configured in a modal, the user could choose a "focus point", which is rather unintuitive. They could also choose to use the "contain" background mode, with or without repeat, or a third option, where they could customize everything, from the background size in both directions to whether to repeat the background in only one or in both directions. This commit streamlines the background-sizing options, only the "cover" and "repeat pattern" options have been kept, as they cover almost every use case. Their configuration has been moved into the options menu for consistency with the rest of the editor, and the background's position is now chosen by clicking on the corresponding menu option, and dragging the background to the desired place. Part of https://github.com/odoo/odoo/pull/38959 maintask-2066614 task-2088304 --- addons/web_editor/static/src/xml/editor.xml | 104 +++------------------------- 1 file changed, 9 insertions(+), 95 deletions(-) (limited to 'addons/web_editor/static/src/xml') diff --git a/addons/web_editor/static/src/xml/editor.xml b/addons/web_editor/static/src/xml/editor.xml index ca653c5d7ea..b1d7128e2c1 100644 --- a/addons/web_editor/static/src/xml/editor.xml +++ b/addons/web_editor/static/src/xml/editor.xml @@ -13,102 +13,16 @@ - -
- - - - -
-
-
Assign a focal point that will always be visible
-
- - - - - -
X: Y:
+ + +
+
+
+
+ +
-
-
-
- -
-
- -
-
-
-
-
-
-
- Background size -

Sets the width and height of the background image in percent of the parent element.

-
- -
-
- -
-
%
-
-
-
-
-
- -
-
- -
-
%
-
-
-
-
-
-
- Background position -

Set the starting position of the background image.

-
- -
-
- -
-
%
-
-
-
-
-
- -
-
- -
-
%
-
-
-
-
-
-
- Background repeat -

Define if/how the background image will be repeated

- -
-
-
+
-- cgit v1.2.3