Browse Source

Hide the side bar when no icon is selected

Alessandro Pignotti 9 months ago
parent
commit
1760888da2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/SideBar.svelte

+ 1 - 1
src/SideBar.svelte

@@ -27,7 +27,7 @@
 			/>
 			/>
 		{/each}
 		{/each}
 	</div>
 	</div>
-	<div class="shrink-0 w-52 h-full z-10 p-5 bg-neutral-600 text-gray-100">
+	<div class="shrink-0 w-52 h-full z-10 p-5 bg-neutral-600 text-gray-100" class:hidden={!activeInfo}>
 		{activeInfo}
 		{activeInfo}
 	</div>
 	</div>
 </div>
 </div>