pull/997/head
Louis Vézina 5 years ago
parent dce67fa874
commit 844101207d

@ -52,6 +52,11 @@
background-color: white; background-color: white;
border: 1px solid #ced4da; border: 1px solid #ced4da;
} }
table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before, table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child:before {
left: -15px;
background-color: #911f93;
}
</style> </style>
{% endblock head %} {% endblock head %}
@ -311,7 +316,21 @@
$(document).ready(function () { $(document).ready(function () {
BadgesAjax(); BadgesAjax();
$(window).on('load resize', function () { $(window).on('load resize', function () {
$('#buttons_bars').width($('.page-wrapper').width()); if ($('body').hasClass('mini-sidebar')) {
$('#buttons_bars').width($(window).width());
$('.page-wrapper').attr('style', 'padding-top: 60px !important');
$('.badge').each(function() {
$(this).css('max-width', $(this).closest( "div" ).width());
})
$('form .row :first-child').each( function() {
$(this).removeClass('text-right');
})
$('.container-fluid .row :first-child').each( function() {
$(this).removeClass('text-right');
})
} else {
$('#buttons_bars').width($('.page-wrapper').width());
}
}); });
$('.table').on('draw.dt', function () { $('.table').on('draw.dt', function () {

@ -35,7 +35,6 @@
.badge { .badge {
display: inline-block; display: inline-block;
max-width: 500px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
@ -539,7 +538,7 @@
pageLength: {{ settings.general.page_size_manual_search }}, pageLength: {{ settings.general.page_size_manual_search }},
lengthMenu: [ 5, 10, 15, 20, 25 ], lengthMenu: [ 5, 10, 15, 20, 25 ],
searching: true, searching: true,
scrollX: true, responsive: true,
ordering: false, ordering: false,
processing: true, processing: true,
serverSide: false, serverSide: false,
@ -844,6 +843,7 @@
pageLength: 5, pageLength: 5,
searching: true, searching: true,
ordering: false, ordering: false,
responsive: true,
processing: false, processing: false,
serverSide: false, serverSide: false,
ajax: { ajax: {

@ -35,7 +35,6 @@
.badge { .badge {
display: inline-block; display: inline-block;
max-width: 500px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
@ -136,7 +135,7 @@
<h6>Movie path is: <span id="movie_path_span" class="badge badge-secondary"></span> <h6>Movie path is: <span id="movie_path_span" class="badge badge-secondary"></span>
<br>Scenename is: <span id="movie_scenename_span" class="badge badge-secondary"></span></h6> <br>Scenename is: <span id="movie_scenename_span" class="badge badge-secondary"></span></h6>
<div class="container-fluid" style="padding:0px;"> <div class="container-fluid" style="padding:0px;">
<table id="search_result" class="table table-striped" style="width:100%"> <table id="search_result" class="table table-striped">
<thead> <thead>
<tr> <tr>
<th style="text-align: left;">Score:</th> <th style="text-align: left;">Score:</th>
@ -413,7 +412,7 @@
pageLength: {{ settings.general.page_size_manual_search }}, pageLength: {{ settings.general.page_size_manual_search }},
lengthMenu: [ 5, 10, 15, 20, 25 ], lengthMenu: [ 5, 10, 15, 20, 25 ],
searching: true, searching: true,
scrollX: true, responsive: true,
ordering: false, ordering: false,
processing: true, processing: true,
serverSide: false, serverSide: false,
@ -675,6 +674,7 @@
pageLength: 5, pageLength: 5,
searching: true, searching: true,
ordering: false, ordering: false,
responsive: true,
processing: false, processing: false,
serverSide: false, serverSide: false,
ajax: { ajax: {

Loading…
Cancel
Save