From 215bb7ac3481cff796a00b467f99977133c9257e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 13 May 2020 20:04:52 -0400 Subject: [PATCH] WIP --- views/_main.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) {