Преглед на файлове

refac: only show resizer when controls is open

Timothy J. Baek преди 7 месеца
родител
ревизия
a571ae4ec2
променени са 1 файла, в които са добавени 8 реда и са изтрити 5 реда
  1. 8 5
      src/lib/components/chat/ChatControls.svelte

+ 8 - 5
src/lib/components/chat/ChatControls.svelte

@@ -127,11 +127,14 @@
 		{/if}
 	{:else}
 		<!-- if $showControls -->
-		<PaneResizer class="relative flex w-2 items-center justify-center bg-background group">
-			<div class="z-10 flex h-7 w-5 items-center justify-center rounded-sm">
-				<EllipsisVertical className="size-4 invisible group-hover:visible" />
-			</div>
-		</PaneResizer>
+
+		{#if $showControls}
+			<PaneResizer class="relative flex w-2 items-center justify-center bg-background group">
+				<div class="z-10 flex h-7 w-5 items-center justify-center rounded-sm">
+					<EllipsisVertical className="size-4 invisible group-hover:visible" />
+				</div>
+			</PaneResizer>
+		{/if}
 		<Pane
 			bind:pane
 			defaultSize={$showControls