MDL-68858 core_contentbank: added scrollable dropdown and missing icons
authorVíctor Déniz Falcón <victor@moodle.com>
Thu, 28 May 2020 16:23:35 +0000 (17:23 +0100)
committerVíctor Déniz Falcón <victor@moodle.com>
Fri, 29 May 2020 10:57:01 +0000 (11:57 +0100)
contentbank/templates/bankcontent/toolbar_dropdown.mustache
theme/boost/scss/moodle/contentbank.scss
theme/boost/style/moodle.css
theme/classic/style/moodle.css

index 7a2fbf5..f49dbd6 100644 (file)
                 {{/typeeditorparams}}
                 {{#typeeditorparams}}
                     <a class="dropdown-item icon-size-4" href="{{{ baseurl }}}&{{{ typeeditorparams }}}">
-                        <img alt="" class="icon" src="{{{ typeicon }}}"> {{ typename }}
+                        {{#typeicon}}
+                            <img alt="" class="icon" src="{{{ typeicon }}}">
+                        {{/typeicon}}
+                        {{^typeicon}}
+                            {{#pix}} b/h5p_library, core {{/pix}}
+                        {{/typeicon}} {{ typename }}
                     </a>
                 {{/typeeditorparams}}
             {{/types}}
index 0eea802..a7bfc64 100644 (file)
     }
 }
 
-.cb-toolbar .dropdown-scrollable {
+.cb-toolbar-container .dropdown-scrollable {
     max-height: 190px;
     overflow-y: auto;
-}
\ No newline at end of file
+}
index d2661e5..b78fee8 100644 (file)
@@ -13031,7 +13031,7 @@ table.calendartable caption {
 .content-bank-container.view-list .cb-btnsort.dir-desc .desc {
   display: block; }
 
-.cb-toolbar .dropdown-scrollable {
+.cb-toolbar-container .dropdown-scrollable {
   max-height: 190px;
   overflow-y: auto; }
 
index 862c960..e121895 100644 (file)
@@ -13246,7 +13246,7 @@ table.calendartable caption {
 .content-bank-container.view-list .cb-btnsort.dir-desc .desc {
   display: block; }
 
-.cb-toolbar .dropdown-scrollable {
+.cb-toolbar-container .dropdown-scrollable {
   max-height: 190px;
   overflow-y: auto; }