Browse Source

The Graph is everywhere

mj-deploy
Standa Lukeš 4 years ago
parent
commit
5761a5ce0b
  1. 4
      frontend/src/Editor.svelte
  2. 16
      frontend/src/Graph.svelte
  3. 2
      frontend/src/TaskPanel.svelte

4
frontend/src/Editor.svelte

@ -68,6 +68,8 @@
.right {
width: 40vw;
height: 100%;
z-index: 20;
position: relative;
}
.left {
@ -111,7 +113,7 @@
<div class="toolbox">
<div>Toolbox</div>
<div>
<button on:click={addEdge}>Pridat hranu - posledni vyzaduje predposledni</button>
<button disabled={clicked.length <= 1} on:click={addEdge}>Přidat hranu {clicked[clicked.length - 2]} -&gt; {clicked[clicked.length - 1]}</button>
</div>
<div><button on:click={graph.runSimulation}>Spustit simulaci</button></div>
<div>

16
frontend/src/Graph.svelte

@ -98,8 +98,22 @@
<style>
div {
width: 100vw;
height: 100vh;
position: fixed;
top: 0px;
left: 0px;
}
:global(#header) {
z-index: 20
}
:global(#wrapper) {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
}
:global(#page) {
flex-grow: 1;
}
</style>

2
frontend/src/TaskPanel.svelte

@ -32,7 +32,7 @@ import TaskDisplay from "./TaskDisplay.svelte";
<style>
.panel {
position: absolute;
position: relative;
width: 100%;
background-color: #222;
overflow: hidden;