diff --git a/src/components/side_panel/conditional_formatting/cf_preview/cf_preview.css b/src/components/side_panel/conditional_formatting/cf_preview/cf_preview.css index 576b037174..7aa6f1cc60 100644 --- a/src/components/side_panel/conditional_formatting/cf_preview/cf_preview.css +++ b/src/components/side_panel/conditional_formatting/cf_preview/cf_preview.css @@ -17,7 +17,6 @@ display: none; } .o-cf-preview-icon { - position: absolute; height: 50px; width: 50px; .o-icon { @@ -26,12 +25,6 @@ } } .o-cf-preview-description { - left: 65px; - margin-bottom: auto; - margin-right: 8px; - margin-top: auto; - position: relative; - width: 142px; .o-cf-preview-description-rule { margin-bottom: 4px; max-height: 2.8em; @@ -41,16 +34,11 @@ font-size: 12px; } } - .o-cf-delete { - left: 90%; - top: 39%; - position: absolute; - } &:not(:hover):not(.o-cf-dragging) .o-cf-drag-handle { display: none !important; } .o-cf-drag-handle { - left: -8px; + left: 2px; cursor: move; .o-icon { width: 6px; diff --git a/src/components/side_panel/conditional_formatting/cf_preview/cf_preview.xml b/src/components/side_panel/conditional_formatting/cf_preview/cf_preview.xml index 8175bed80a..74d7413dc1 100644 --- a/src/components/side_panel/conditional_formatting/cf_preview/cf_preview.xml +++ b/src/components/side_panel/conditional_formatting/cf_preview/cf_preview.xml @@ -2,48 +2,45 @@
-
+
+ +
+
- + class="o-cf-preview-icon d-flex justify-content-around align-items-center me-3 bg-white border"> + + +
- -
- - - -
-
- -
- 123 -
-
-
-
-
- -
-
-
+ + +
+ 123
-
-
- + +
+
+
+
+
+
+
+
+ +
diff --git a/tests/conditional_formatting/__snapshots__/conditional_formatting_panel_component.test.ts.snap b/tests/conditional_formatting/__snapshots__/conditional_formatting_panel_component.test.ts.snap index bcac99ad3e..8887dd4fce 100644 --- a/tests/conditional_formatting/__snapshots__/conditional_formatting_panel_component.test.ts.snap +++ b/tests/conditional_formatting/__snapshots__/conditional_formatting_panel_component.test.ts.snap @@ -15,83 +15,79 @@ exports[`UI of conditional formats Conditional format list simple snapshot 1`] = style="" >
-
- - - - - - -
- -
- 123 -
- + + + + + +
+ +
+ 123 +
+ +
-
- Value is equal to 2 -
-
-
- A1:A2 + Value is equal to 2
+ A1:A2 +
+
+
+
-
- -
+
@@ -102,83 +98,79 @@ exports[`UI of conditional formats Conditional format list simple snapshot 1`] = style="" >
-
- - - - - - -
- -
- 123 -
- + + + + + +
+ +
+ 123 +
+ +
-
- Color scale -
-
-
- B1:B5 + Color scale
+ B1:B5 +
+
+
+
-
- -
+