diff --git a/views/_main.html b/views/_main.html
index cda300856..b9397ae5e 100644
--- a/views/_main.html
+++ b/views/_main.html
@@ -457,9 +457,7 @@
$('#buttons_bars').width($('body').width() - 240);
}
- $('.badge').each(function() {
- $(this).css('max-width', $(this).closest( "div" ).width());
- })
+
if ($(window).width() <= 1170) {
$('form .row :first-child').each( function() {
@@ -468,6 +466,9 @@
$('.container-fluid .row :first-child').each( function() {
$(this).removeClass('text-right');
})
+ $('.badge').each(function() {
+ $(this).css('max-width', $(this).closest( "div" ).width());
+ })
}
if ($('#buttons_bar_left').children().length > 0 || $('#buttons_bar_right').children().length > 0) {