Преглед на файлове

Adjusted width of the link actions preview to match the input in the editing form.

Aleksander Nowodzinski преди 8 години
родител
ревизия
9202986f7a
променени са 1 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. 6 3
      packages/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css

+ 6 - 3
packages/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css

@@ -13,11 +13,14 @@
 	& .ck-link-actions__preview {
 	& .ck-link-actions__preview {
 		color: var(--ck-color-link-default);
 		color: var(--ck-color-link-default);
 		text-overflow: ellipsis;
 		text-overflow: ellipsis;
-		max-width: 20em;
-		min-width: 3em;
-		margin: 0 var(--ck-spacing-standard);
 		cursor: pointer;
 		cursor: pointer;
 
 
+		/* Match the box model of the link editor form's input so the balloon
+		does not change width when moving between actions and the form. */
+		padding: 0 var(--ck-spacing-medium);
+		max-width: 18em;
+		min-width: 3em;
+
 		&:hover {
 		&:hover {
 			text-decoration: underline;
 			text-decoration: underline;
 		}
 		}