Selaa lähdekoodia

Fix: The insert paragraph button should not collide with a widget drag handler.

Aleksander Nowodzinski 5 vuotta sitten
vanhempi
sitoutus
6ec9bf8666

+ 8 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css

@@ -94,6 +94,14 @@
 			background: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);
 		}
 	}
+
+	/*
+	 * Styles for the "before" button when the widget has a selection handle. Because some space
+	 * is consumed by the handle, the button must be moved slightly to the right to let it breathe.
+	 */
+	&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {
+		margin-left: 20px;
+	}
 }
 
 /*