Skip to content

Commit

Permalink
change panel ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Apr 4, 2019
1 parent 94f0ec5 commit 545f248
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 26 deletions.
50 changes: 25 additions & 25 deletions src/app/staticanalysis/staticAnalysisView.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,32 @@ staticAnalysisView.prototype.render = function () {
var self = this
var view = yo`
<div class="${css.analysis}">
<div id="staticanalysismodules" class="list-group list-group-flush">
${this.modulesView}
</div>
<div class="${css.buttons}">
<div class="${css.buttonsInner}">
<button class="${css.buttonRun} btn btn-sm btn-primary" onclick="${function () { self.run() }}" >Run</button>
<label class="${css.label}" for="autorunstaticanalysis">
<input id="autorunstaticanalysis"
type="checkbox"
style="vertical-align:bottom"
checked="true"
>
Auto run
</label>
<label class="${css.label}" for="checkAllEntries">
<input id="checkAllEntries"
type="checkbox"
onclick="${function (event) { self.checkAll(event) }}"
style="vertical-align:bottom"
checked="true"
>
Check/Uncheck all
</label>
<div class="${css.buttonsInner}">
<button class="${css.buttonRun} btn btn-sm btn-primary" onclick="${function () { self.run() }}" >Run</button>
<label class="${css.label}" for="autorunstaticanalysis">
<input id="autorunstaticanalysis"
type="checkbox"
style="vertical-align:bottom"
checked="true"
>
Auto run
</label>
<label class="${css.label}" for="checkAllEntries">
<input id="checkAllEntries"
type="checkbox"
onclick="${function (event) { self.checkAll(event) }}"
style="vertical-align:bottom"
checked="true"
>
Check/Uncheck all
</label>
</div>
</div>
</div>
<div class="${css.result}" "id='staticanalysisresult'></div>
<div id="staticanalysismodules" class="list-group list-group-flush ${css.container}">
${this.modulesView}
</div>
<div class="${css.result}" "id='staticanalysisresult'></div>
</div>
`
if (!this.view) {
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 4 additions & 0 deletions src/app/staticanalysis/styles/staticAnalysisView-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ var css = csjs`
display: flex;
align-items: center;
}
.container {
max-height: 500px;
overflow-y: auto;
}
`

module.exports = css
2 changes: 1 addition & 1 deletion src/app/ui/styles/renderer-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var css = yo`<style>
}
.sol.staticAnalysisWarning {
background-color: var(--info);
background-color: var(--warning);
}
.sol.success {
Expand Down

0 comments on commit 545f248

Please sign in to comment.