浏览代码

Show predefined time ranges as first in timepicker on small screens

Simon Podlipsky 7 年之前
父节点
当前提交
2d296715ec
共有 1 个文件被更改,包括 9 次插入4 次删除
  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 {