From 545f24869ed180bea5804c3a2ccc8a449deb2f6a Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 4 Apr 2019 11:13:15 +0200 Subject: [PATCH 1/7] change panel ordering --- src/app/staticanalysis/staticAnalysisView.js | 50 +++++++++---------- .../styles/staticAnalysisView-styles.js | 4 ++ src/app/ui/styles/renderer-styles.js | 2 +- 3 files changed, 30 insertions(+), 26 deletions(-) diff --git a/src/app/staticanalysis/staticAnalysisView.js b/src/app/staticanalysis/staticAnalysisView.js index 699387b61a..b8f00c468f 100644 --- a/src/app/staticanalysis/staticAnalysisView.js +++ b/src/app/staticanalysis/staticAnalysisView.js @@ -43,32 +43,32 @@ staticAnalysisView.prototype.render = function () { var self = this var view = yo`
-
- ${this.modulesView} -
-
- - - +
+ + + +
-
-
+
+ ${this.modulesView} +
+
` if (!this.view) { @@ -96,8 +96,8 @@ staticAnalysisView.prototype.run = function () { var selected = this.selectedModules() var warningContainer = $('#staticanalysisresult') warningContainer.empty() + var self = this if (this.lastCompilationResult) { - var self = this var warningCount = 0 this.runner.run(this.lastCompilationResult, selected, function (results) { results.map(function (result, i) { diff --git a/src/app/staticanalysis/styles/staticAnalysisView-styles.js b/src/app/staticanalysis/styles/staticAnalysisView-styles.js index 4aa5f5450a..65b241178a 100644 --- a/src/app/staticanalysis/styles/staticAnalysisView-styles.js +++ b/src/app/staticanalysis/styles/staticAnalysisView-styles.js @@ -25,6 +25,10 @@ var css = csjs` display: flex; align-items: center; } + .container { + max-height: 500px; + overflow-y: auto; + } ` module.exports = css diff --git a/src/app/ui/styles/renderer-styles.js b/src/app/ui/styles/renderer-styles.js index 710d7fb821..2a143a165a 100644 --- a/src/app/ui/styles/renderer-styles.js +++ b/src/app/ui/styles/renderer-styles.js @@ -49,7 +49,7 @@ var css = yo`