Explorar el Código

Fix: The mention panel should have no extra scrollbars in Safari on Mac.

Aleksander Nowodzinski hace 6 años
padre
commit
d43b1aac1a
Se han modificado 1 ficheros con 11 adiciones y 0 borrados
  1. 11 0
      packages/ckeditor5-mention/theme/mentionui.css

+ 11 - 0
packages/ckeditor5-mention/theme/mentionui.css

@@ -12,5 +12,16 @@
 
 	overflow-y: auto;
 
+	/* Prevent unnecessary horizontal scrollbar in Safari
+	https://github.com/ckeditor/ckeditor5-mention/issues/41 */
+	overflow-x: hidden;
+
 	overscroll-behavior: contain;
+
+	/* Prevent unnecessary vertical scrollbar in Safari
+	https://github.com/ckeditor/ckeditor5-mention/issues/41 */
+	& > .ck-list__item {
+		overflow: hidden;
+		flex-shrink: 0;
+	}
 }