From 545f24869ed180bea5804c3a2ccc8a449deb2f6a Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 4 Apr 2019 11:13:15 +0200 Subject: [PATCH] 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 699387b61a1..b8f00c468fe 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 4aa5f5450ac..65b241178a5 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 710d7fb821d..2a143a165a2 100644 --- a/src/app/ui/styles/renderer-styles.js +++ b/src/app/ui/styles/renderer-styles.js @@ -49,7 +49,7 @@ var css = yo`