Sfoglia il codice sorgente

Dropdown menu max-height (#3102)

Reduce it on big screens
Alexandre Alapetite 5 anni fa
parent
commit
f98a092566

+ 1 - 1
p/themes/base-theme/template.css

@@ -304,7 +304,7 @@ a.btn {
 }
 }
 
 
 .dropdown-menu-scrollable {
 .dropdown-menu-scrollable {
-	max-height: 75vh;
+	max-height: min(75vh, 50em);
 	overflow-x: hidden;
 	overflow-x: hidden;
 	overflow-y: auto;
 	overflow-y: auto;
 }
 }

+ 1 - 1
p/themes/base-theme/template.rtl.css

@@ -304,7 +304,7 @@ a.btn {
 }
 }
 
 
 .dropdown-menu-scrollable {
 .dropdown-menu-scrollable {
-	max-height: 75vh;
+	max-height: min(75vh, 50em);
 	overflow-x: hidden;
 	overflow-x: hidden;
 	overflow-y: auto;
 	overflow-y: auto;
 }
 }