瀏覽代碼

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}
 		{/if}
 	{:else}
 	{:else}
 		<!-- if $showControls -->
 		<!-- 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
 		<Pane
 			bind:pane
 			bind:pane
 			defaultSize={$showControls
 			defaultSize={$showControls