8
0
Просмотр исходного кода

Fix: The operator between table width and height fields should be aligned properly.

Aleksander Nowodzinski 6 лет назад
Родитель
Сommit
7c9c886cb0

+ 12 - 2
packages/ckeditor5-table/src/tableproperties/ui/tablepropertiesview.js

@@ -47,7 +47,7 @@ const ALIGNMENT_ICONS = {
 
 /**
  * The class representing a table properties form, allowing users to customize
- * certain style aspects of a table, for instance, border, padding, text alignment, etc..
+ * certain style aspects of a table, for instance, border, background color, alignment, etc..
  *
  * @extends module:ui/view~View
  */
@@ -523,7 +523,17 @@ export default class TablePropertiesView extends View {
 		// -- Operator ---------------------------------------------------
 
 		const operatorLabel = new View( locale );
-		operatorLabel.setTemplate( { text: '×' } );
+		operatorLabel.setTemplate( {
+			tag: 'span',
+			attributes: {
+				class: [
+					'ck-table-properties-form__dimension-operator'
+				]
+			},
+			children: [
+				{ text: '×' }
+			]
+		} );
 
 		// -- Height ---------------------------------------------------
 

+ 4 - 0
packages/ckeditor5-table/theme/tableproperties.css

@@ -13,6 +13,10 @@
 		&.ck-table-properties-form__dimensions-row {
 			align-items: center;
 
+			& .ck-table-properties-form__dimension-operator {
+				flex-grow: 0;
+			}
+
 			& .ck-labeled-view {
 				display: flex;
 				flex-direction: column-reverse;