Browse Source

Fix: Set margin to toolbar items container separating it from grouped dropdown only if it's an only child

panr 6 years ago
parent
commit
a28cb6d389

+ 2 - 2
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css

@@ -98,7 +98,7 @@
 	}
 
 	/* Some spacing between the items and the separator before the grouped items dropdown. */
-	&.ck-toolbar_grouping > .ck-toolbar__items {
+	&.ck-toolbar_grouping > .ck-toolbar__items:not(:only-child) {
 		margin-left: var(--ck-spacing-small);
 	}
 }
@@ -120,7 +120,7 @@
 	}
 
 	/* Some spacing between the items and the separator before the grouped items dropdown. */
-	&.ck-toolbar_grouping > .ck-toolbar__items {
+	&.ck-toolbar_grouping > .ck-toolbar__items:not(:only-child) {
 		margin-right: var(--ck-spacing-small);
 	}
 }