@ -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]} -> {clicked[clicked.length - 1]}</button>
</div>
<div><button on:click={graph.runSimulation}>Spustit simulaci</button></div>
@ -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;
width: 100%;
:global(#page) {
flex-grow: 1;
</style>
@ -32,7 +32,7 @@ import TaskDisplay from "./TaskDisplay.svelte";
.panel {
position: absolute;
background-color: #222;
overflow: hidden;