소스 검색

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