From 565b1c5271072cd3c137c81153e7a492885945b0 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 10 Jun 2021 13:28:55 -0400 Subject: [PATCH] tests: Fix flexbox grow/shrink factors * Make sure the `#mocha-report` div grows to fill the available vertical space. * Prevent the "Loading frontend test specs..." div from shrinking. --- src/tests/frontend/runner.css | 2 +- src/tests/frontend/runner.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/frontend/runner.css b/src/tests/frontend/runner.css index aac044c13..6331b8183 100644 --- a/src/tests/frontend/runner.css +++ b/src/tests/frontend/runner.css @@ -171,7 +171,7 @@ body { } #mocha-report { - flex: 0 1 auto; + flex: 1 1 auto; overflow: auto; margin: 0; } diff --git a/src/tests/frontend/runner.js b/src/tests/frontend/runner.js index 9cfd65d19..2784b508e 100644 --- a/src/tests/frontend/runner.js +++ b/src/tests/frontend/runner.js @@ -253,7 +253,7 @@ $(() => (async () => { .css({'display': 'flex', 'flex-direction': 'column', 'height': '100%'}) .append($('
').css({flex: '1 0 0'})) .append($('
') - .css({'flex': '0 1 auto', 'font-weight': 'bold'}) + .css({'flex': '0 0 auto', 'font-weight': 'bold'}) .text('Loading frontend test specs...')) .append($log.css({flex: '0 1 auto', overflow: 'auto'})) .append($bar.css({flex: '0 0 auto', width: '100%'}))