浏览代码

Fix: Toolbar items should not collapse when the toolbar is floating. Closes #93.

Aleksander Nowodzinski 8 年之前
父节点
当前提交
690648f6fb
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      packages/ckeditor5-theme-lark/theme/components/toolbar/toolbar.scss

+ 9 - 0
packages/ckeditor5-theme-lark/theme/components/toolbar/toolbar.scss

@@ -5,8 +5,17 @@
 	line-height: 1;
 	padding: ck-spacing( 'small' );
 	border: 1px solid ck-border-color();
+
+	// Allow wrapping toolbar items to the new line.
 	white-space: initial;
 
+	&_floating {
+		// Disallow wrapping toolbar items to the new line when the toolbar is floating,
+		// resulting in an toolbar shapes when the horizontal space is limited.
+		// https://github.com/ckeditor/ckeditor5-theme-lark/issues/93
+		white-space: nowrap;
+	}
+
 	@include ck-unselectable();
 	@include ck-rounded-corners();