ソースを参照

fixed some css stuff

NAME 5 年 前
コミット
9cd60a9ca3

+ 2 - 0
src/themes/bootstrap-table/bootstrap-table.js

@@ -26,6 +26,8 @@ $.BootstrapTable = class extends $.BootstrapTable {
   init () {
     super.init()
 
+    this.constants.classes.dropup = 'dropdown-menu-up'
+
     $('.modal').on('click', '[data-close]', (e) => {
       $(e.delegateTarget).removeClass('show')
     })

+ 12 - 0
src/themes/bootstrap-table/bootstrap-table.scss

@@ -131,11 +131,19 @@
     }
   }
 
+  .dropdown-menu-up {
+    .dropdown-menu {
+      top: auto;
+      bottom: 100%;
+    }
+  }
+
   .dropdown-menu {
     display: none;
     background-color: $background;
     position: absolute;
     right: 0;
+    min-width: 160px;
     margin-top: 2px;
     border: 1px solid $btn-border;
     border-radius: 4px;
@@ -299,4 +307,8 @@
 
 .mt-30 {
   margin-top: 30px;
+}
+
+.float-left {
+  float: left;
 }