UI style changes

pull/1/head
LianaHus 5 years ago committed by Liana Husikyan
parent 9acc8f3899
commit 4c43c292a7
  1. 18
      src/app/tabs/staticanalysis/staticAnalysisView.js
  2. 8
      src/app/tabs/staticanalysis/styles/staticAnalysisView-styles.js

@ -41,13 +41,10 @@ function staticAnalysisView (localRegistry, analysisModule) {
} }
staticAnalysisView.prototype.render = function () { staticAnalysisView.prototype.render = function () {
this.runBtn = yo`<button class="btn btn-sm btn-primary" onclick="${() => { this.run() }}" >Run</button>` this.runBtn = yo`<button class="btn btn-sm w-25 btn-primary" onclick="${() => { this.run() }}" >Run</button>`
const view = yo` const view = yo`
<div class="${css.analysis}"> <div class="${css.analysis}">
<div class="mb-2 d-flex flex-column align-items-left"> <div class="my-2 d-flex flex-column align-items-left">
<div class="mb-2 p-2 alert alert-info">
<span class="font-weight-bold " id="staticAnalysisCurrentFile">No file compiled</span>
</div>
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
${this.runBtn} ${this.runBtn}
<div class="${css.label}" for="autorunstaticanalysis"> <div class="${css.label}" for="autorunstaticanalysis">
@ -57,7 +54,7 @@ staticAnalysisView.prototype.render = function () {
checked="true" checked="true"
> >
<label class="text-nowrap pl-2 mb-0" for="autorunstaticanalysis"> <label class="text-nowrap pl-2 mb-0" for="autorunstaticanalysis">
Auto run Autorun
</label> </label>
</div> </div>
<div class="${css.label}" for="checkAllEntries"> <div class="${css.label}" for="checkAllEntries">
@ -68,7 +65,7 @@ staticAnalysisView.prototype.render = function () {
checked="true" checked="true"
> >
<label class="text-nowrap pl-2 mb-0" for="checkAllEntries"> <label class="text-nowrap pl-2 mb-0" for="checkAllEntries">
Check/Uncheck all Select all
</label> </label>
</div> </div>
</div> </div>
@ -76,7 +73,10 @@ staticAnalysisView.prototype.render = function () {
<div id="staticanalysismodules" class="list-group list-group-flush"> <div id="staticanalysismodules" class="list-group list-group-flush">
${this.modulesView} ${this.modulesView}
</div> </div>
<div class="${css.resultTitle} mx-2"><h6>Results:</h6></div> <div class="my-2 p-2 d-flex flex-column alert alert-info">
<span>Analysis for:</span>
<span class="text-break break-word word-break font-weight-bold" id="staticAnalysisCurrentFile">No file compiled</span>
</div>
<div class="${css.result} my-2" id='staticanalysisresult'></div> <div class="${css.result} my-2" id='staticanalysisresult'></div>
</div> </div>
` `
@ -200,7 +200,7 @@ staticAnalysisView.prototype.renderModules = function () {
<label for="heading${categoryId}" style="cursor: pointer;" class="h6 card-header font-weight-bold border-bottom px-1 py-2 w-100"> <label for="heading${categoryId}" style="cursor: pointer;" class="h6 card-header font-weight-bold border-bottom px-1 py-2 w-100">
<span>${category[0].categoryDisplayName}</span> <span>${category[0].categoryDisplayName}</span>
</label> </label>
<div class="w-100 d-block px-2 py-1 ${css.entries}"> <div class="w-100 d-block px-2 my-1 ${css.entries}">
${entriesDom} ${entriesDom}
</div> </div>
</> </>

@ -10,17 +10,9 @@ var css = csjs`
max-height: 300px; max-height: 300px;
word-break: break-all; word-break: break-all;
} }
.resultTitle {
padding-top: 20px;
}
.buttons { .buttons {
margin: 1rem 0; margin: 1rem 0;
} }
.buttonsInner {
display: flex;
align-items: center;
justify-content: space-around;
}
.label { .label {
display: flex; display: flex;
align-items: center; align-items: center;

Loading…
Cancel
Save