The Graph is everywhere
This commit is contained in:
		
							parent
							
								
									0336e59c05
								
							
						
					
					
						commit
						5761a5ce0b
					
				
					 3 changed files with 19 additions and 3 deletions
				
			
		|  | @ -68,6 +68,8 @@ | ||||||
|   .right { |   .right { | ||||||
|     width: 40vw; |     width: 40vw; | ||||||
|     height: 100%; |     height: 100%; | ||||||
|  |     z-index: 20; | ||||||
|  |     position: relative; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   .left { |   .left { | ||||||
|  | @ -111,7 +113,7 @@ | ||||||
|     <div class="toolbox"> |     <div class="toolbox"> | ||||||
|       <div>Toolbox</div> |       <div>Toolbox</div> | ||||||
|       <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> | ||||||
|       <div><button on:click={graph.runSimulation}>Spustit simulaci</button></div> |       <div><button on:click={graph.runSimulation}>Spustit simulaci</button></div> | ||||||
|       <div> |       <div> | ||||||
|  |  | ||||||
|  | @ -98,8 +98,22 @@ | ||||||
| 
 | 
 | ||||||
| <style> | <style> | ||||||
|   div { |   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%; |     height: 100%; | ||||||
|     width: 100%; |   } | ||||||
|  |   :global(#page) { | ||||||
|  |     flex-grow: 1; | ||||||
|   } |   } | ||||||
| </style> | </style> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -32,7 +32,7 @@ import TaskDisplay from "./TaskDisplay.svelte"; | ||||||
| 
 | 
 | ||||||
| <style> | <style> | ||||||
|     .panel { |     .panel { | ||||||
|         position: absolute; |         position: relative; | ||||||
|         width: 100%; |         width: 100%; | ||||||
|         background-color: #222; |         background-color: #222; | ||||||
|         overflow: hidden; |         overflow: hidden; | ||||||
|  |  | ||||||
		Reference in a new issue