Pārlūkot izejas kodu

Merge pull request #2481 from juherpin/ftr-ui-list-table

UI improvements for ajax layout and filters
Thomas 10 gadi atpakaļ
vecāks
revīzija
e6ce0a612a

+ 11 - 0
Resources/public/css/styles.css

@@ -322,6 +322,17 @@ form.sonata-filter-form.form-stacked {
     height: 23px;
 }
 
+body.fixed .sonata-list-table {
+    position: relative;
+    margin-left: 15px;
+    margin-right: 15px;
+    margin-bottom: 5px;
+}
+
+.navbar-nav.navbar-right:last-child {
+    margin-right: 0;
+}
+
 /* Overrides */
 
 /* x-editable */

+ 7 - 0
Resources/views/ajax_layout.html.twig

@@ -24,6 +24,10 @@ file that was distributed with this source code.
     {% if _list_table is not empty or _list_filters is not empty %}
         <div class="row">
 
+            <div class="navbar navbar-default sonata-list-table">
+
+                <div class="container-fluid">
+
                     {% if admin is defined and action is defined and action == 'list' and admin.listModes|length > 1 %}
                         <div class="nav navbar-right btn-group">
                             {% for mode, settings in admin.listModes %}
@@ -36,7 +40,10 @@ file that was distributed with this source code.
                         {{ _list_filters_actions|raw }}
                     {% endif %}
 
+                </div>
+
             </div>
+        </div>
 
         {% if _list_filters|trim %}
              <div class="row">