From fc3e1110f82354a12d3094d2dcc608af231d88be Mon Sep 17 00:00:00 2001 From: Pacman Ghost Date: Mon, 12 Sep 2022 03:08:02 +1000 Subject: [PATCH] Worked around a layout problem when the Victory Conditions are long. --- vasl_templates/webapp/static/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vasl_templates/webapp/static/main.js b/vasl_templates/webapp/static/main.js index 8403cf0..9e3add5 100644 --- a/vasl_templates/webapp/static/main.js +++ b/vasl_templates/webapp/static/main.js @@ -1242,7 +1242,8 @@ function adjust_footer_vspacers() if ( gWebChannelHandler && $(this).attr("name").indexOf( "ob_" ) === 0 ) delta += 28 ; // add a vertical spacer after the footer (to push it up a bit) - $footer.after( "
" ) ; + var height = Math.ceil( Math.max( 0, delta ) ) + "px" ; + $footer.after( "
" ) ; } ) ; }