Skip to content

Commit

Permalink
have run/stop button show over terminal when expande
Browse files Browse the repository at this point in the history
  • Loading branch information
klamping committed Oct 24, 2018
1 parent 5d877ae commit 5d99760
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chester-desktop",
"version": "0.1.10",
"version": "0.1.11",
"author": "Kevin Lamping <klamping@gmail.com>",
"description": "A desktop helper app for running WebdriverIO tests",
"license": null,
Expand Down
19 changes: 12 additions & 7 deletions src/renderer/components/Project.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
</h1>
<EditProject />
</div>

<div class="run-buttons" v-if="configsLoaded">
<Tooltip placement="bottom" content="(Ctrl+r)">
<Button v-on:click="runTest" type="success" v-bind:disabled="testRunning">Run Tests</Button>
</Tooltip>
<Button v-on:click="stopTest" type="success" v-bind:disabled="!testRunning">Stop Tests</Button>
</div>
</Header>
<Content class="project-content">
<div class="aux-content">
Expand Down Expand Up @@ -62,6 +55,12 @@
</Form>
</Content>
</Layout>
<div class="run-buttons" v-if="configsLoaded">
<Tooltip placement="bottom" content="(Ctrl+r)">
<Button v-on:click="runTest" type="success" v-bind:disabled="testRunning">Run Tests</Button>
</Tooltip>
<Button v-on:click="stopTest" type="success" v-bind:disabled="!testRunning">Stop Tests</Button>
</div>
<Term></Term>
</template>
</div>
Expand Down Expand Up @@ -94,6 +93,12 @@
.project-header .project-info .ivu-btn {
margin-left: 1rem;
}
.run-buttons {
position: absolute;
z-index: 10;
top: 18px;
right: 10px;
}
.project-content {
display: flex;
overflow: hidden;
Expand Down
5 changes: 4 additions & 1 deletion src/renderer/components/Term.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,16 @@
.clear-logs.ivu-btn {
position: absolute;
top: 1em;
right: 5px;
right: 10px;
z-index: 20;
opacity: .5;
background: #555;
color: #fff;
transition: all 0.25s ease-in-out;
}
.terminal-container.expanded .clear-logs.ivu-btn {
top: 55px;
}
.clear-logs.ivu-btn:hover,
.clear-logs.ivu-btn:focus {
opacity: 1;
Expand Down

0 comments on commit 5d99760

Please sign in to comment.