Browse Source

Fix styling of multi-selects

alexweissman 7 năm trước cách đây
mục cha
commit
356920421a
2 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 0 1
      pages/06.data-sources/02.ajax/docs.md
  2. 6 0
      themes/site/css/theme.css

+ 0 - 1
pages/06.data-sources/02.ajax/docs.md

@@ -282,7 +282,6 @@ function formatRepo (repo) {
 }
 
 function formatRepoSelection (repo) {
-  console.log(repo);
   return repo.full_name || repo.text;
 }
 </script>

+ 6 - 0
themes/site/css/theme.css

@@ -39,3 +39,9 @@ img.img-flag {
     height: 15px;
     width: 18px;
 }
+
+/* Override some styles for Select2 component elements */
+input.select2-search__field {
+    margin-bottom: 0;
+    line-height: inherit;
+}