Selaa lähdekoodia

Add max-height and autoscroll on overflow, so that with many items the menu does not overflow

sbkwgh 7 vuotta sitten
vanhempi
commit
7489354f22
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      frontend/src/components/SelectButton.vue

+ 2 - 0
frontend/src/components/SelectButton.vue

@@ -171,6 +171,8 @@
 					border-radius: 0.25rem 0.25rem 0 0;
 					transition: opacity 0.2s, bottom 0.2s;
 					background-color: rgba(255, 255, 255, 0.97);
+					max-height: calc(100% - 5rem);
+					overflow-y: auto;
 
 					@at-root #{&}--hidden {
 						bottom: -100%;