浏览代码

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

panr 5 年之前
父节点
当前提交
a28cb6d389
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css

+ 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);
 	}
 }