Skip to content

Commit 475f54d

Browse files
filter section responsive fixed
1 parent 7644886 commit 475f54d

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

resources/css/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ select + .select2 {
593593
}
594594

595595
.form-control {
596-
color: #999;
596+
color: {{ setting_value('visiosoft.theme.defaultadmin::input_placeholder_color')}} !important;
597597
}
598598

599599
.px-2p {

resources/views/table/partials/filters.twig

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,27 @@
88
{{ icon(table.options.filters.filter_icon ?: 'filter') }}
99
{{ trans(table.options.filters.filter_text ?: 'streams::button.filter') }}
1010
</div>
11-
<div class="collapse" id="t10">
12-
<div class="row px-1 relative">
13-
{% for filter in table.filters %}
14-
<div class="col-sm-12 col-md-6 col-lg-3 px-2p" id="form-input-{{ loop.index }}">
15-
<div class="form-group filter_inputs" data-id="{{ loop.index }}">
16-
{{ filter.input|raw }}
11+
<div id="t10">
12+
<div class="container-fluid">
13+
<div class="row">
14+
{% for filter in table.filters %}
15+
<div class="col-sm-12 col-md-6 col-lg-4 px-2p" id="form-input-{{ loop.index }}">
16+
<div class="form-group filter_inputs" data-id="{{ loop.index }}">
17+
{{ filter.input|raw }}
18+
</div>
1719
</div>
20+
{% endfor %}
21+
<div class="col-sm-12 col-md-6 col-lg-4 px-2p position-relative">
22+
<button type="submit" class="btn btn-success float-left">
23+
{{ icon(table.options.filters.filter_icon ?: 'filter') }}
24+
{{ trans(table.options.filters.filter_text ?: 'streams::button.filter') }}
25+
</button>
26+
<a href="{{ url_current() }}{{ request_has('view') ? '?view=' ~ request_get('view') }}"
27+
class="btn btn-inverse float-left">
28+
{{ icon(table.options.filters.clear_icon ? table.options.filters.clear_icon) }}
29+
{{ trans(table.options.filters.clear_text ?: 'streams::button.clear') }}
30+
</a>
1831
</div>
19-
{% endfor %}
20-
<div class="col-sm-12 col-md-6 col-lg-3 px-2p">
21-
<button type="submit" class="btn btn-success">
22-
{{ icon(table.options.filters.filter_icon ?: 'filter') }}
23-
{{ trans(table.options.filters.filter_text ?: 'streams::button.filter') }}
24-
</button>
25-
<a href="{{ url_current() }}{{ request_has('view') ? '?view=' ~ request_get('view') }}"
26-
class="btn btn-inverse">
27-
{{ icon(table.options.filters.clear_icon ? table.options.filters.clear_icon) }}
28-
{{ trans(table.options.filters.clear_text ?: 'streams::button.clear') }}
29-
</a>
3032
</div>
3133
</div>
3234
</div>
@@ -62,6 +64,7 @@
6264
6365
.px-2p {
6466
padding: 0 2px 0 2px;
67+
margin-bottom: 2px;
6568
}
6669
6770
.dont-collapse-sm {

0 commit comments

Comments
 (0)