diff --git a/src/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.ts b/src/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.ts index 8c59b08766..30099f058f 100644 --- a/src/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.ts +++ b/src/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.ts @@ -36,17 +36,10 @@ css/* scss */ ` } .o-cf-preview-icon { border: 1px solid lightgrey; - position: absolute; height: 50px; width: 50px; } .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; font-weight: 600; @@ -58,16 +51,11 @@ css/* scss */ ` 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_list/cf_preview_list.xml b/src/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.xml index 93b433607b..527cd190d1 100644 --- a/src/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.xml +++ b/src/components/side_panel/conditional_formatting/cf_preview_list/cf_preview_list.xml @@ -14,46 +14,44 @@
-
-
- +
+ +
+ +
+ + +
- -
- - - -
-
- -
- 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 efcbc8a69e..14e5e2ba28 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 @@ -11,174 +11,166 @@ exports[`UI of conditional formats Conditional format list simple snapshot 1`] = class="o-cf-preview-list h-100 overflow-auto" >
-
- - - - - - -
- -
- 123 -
- + + + + + +
+ +
+ 123 +
+ +
-
- Is equal to 2 -
-
-
- A1:A2 + Is equal to 2
-
- - - -
+ A1:A2
-
-
- - - -
- -
+
+
+
+ - 123 -
- + + + + + +
+ +
+ 123 +
+ +
-
- Color scale -
-
-
- B1:B5 + Color scale
-
+
+
+
+ - - - -
+ +