Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add a maximal height for the autocompleter result list

Roland Geidera25a605b561f
diff --git a/wger/manager/static/css/jquery-ui-custom.css b/wger/manager/static/css/jquery-ui-custom.css
index bd584c8bf..4a7b814d3 100644
--- a/wger/manager/static/css/jquery-ui-custom.css
+++ b/wger/manager/static/css/jquery-ui-custom.css
@@ -17,7 +17,7 @@
/**************************************************************
- *
+ *
* This file contains slight modifications to the CSS provided
* by JQuery UI
*
@@ -35,3 +35,11 @@
font-family: "Open Sans Light", Arial, Helvetica, sans-serif;
}
+
+/* Add a max-height for the autocompleter */
+.ui-autocomplete {
+ max-height: 300px;
+ overflow-y: auto;
+ overflow-x: hidden; /* prevent horizontal scrollbar */
+}
+
diff --git a/wger/manager/static/css/workout-manager-common.css b/wger/manager/static/css/workout-manager-common.css
index e22273775..921a925bd 100644
--- a/wger/manager/static/css/workout-manager-common.css
+++ b/wger/manager/static/css/workout-manager-common.css
@@ -284,23 +284,15 @@ body .boxInner:hover .titleBox, body.touch .boxInner.touchFocus .titleBox {
}
}
@media only screen and (max-width : 1290px) and (min-width : 1051px) {
- /* Medium desktop: 4 tiles */
+ /* Medium desktop: 3 tiles */
.image-box {
- /*
- width: 25%;
- padding-bottom: 25%;
- */
width: 33.3%;
padding-bottom: 33.3%;
}
}
@media only screen and (min-width : 1290px) {
- /* Medium desktop: 4 tiles */
+ /* Big desktop: 3 tiles */
.image-box {
- /*
- width: 25%;
- padding-bottom: 25%;
- */
width: 33.3%;
padding-bottom: 33.3%;
}