Browse Source

Show predefined time ranges as first in timepicker on small screens

Simon Podlipsky 7 năm trước cách đây
mục cha
commit
2d296715ec
1 tập tin đã thay đổi với 9 bổ sung4 xóa
  1. 9 4
      public/sass/components/_timepicker.scss

+ 9 - 4
public/sass/components/_timepicker.scss

@@ -13,13 +13,18 @@
 }
 
 .gf-timepicker-dropdown {
-  position: absolute;
-  top: $navbarHeight;
-  right: 0;
-  padding: 10px 20px;
   background-color: $page-bg;
   border-radius: 0 0 0 4px;
   box-shadow: $search-shadow;
+  display: flex;
+  flex-direction: column-reverse;
+  padding: 10px 20px;
+  position: absolute;
+  right: 0;
+  top: $navbarHeight;
+  @include media-breakpoint-up(md) {
+    flex-direction: column;
+  }
 }
 
 .gf-timepicker-absolute-section {