fix: 검색바 상단 고정 — 문서 목록만 스크롤

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-03 13:49:42 +09:00
parent 9b0705b79f
commit 5153169d5d

View File

@@ -134,13 +134,13 @@
<svelte:window on:keydown={handleKeydown} /> <svelte:window on:keydown={handleKeydown} />
<div class="flex flex-col h-full"> <div class="flex flex-col h-full">
<!-- 상단: 문서 목록 (30% when viewer active, 100% otherwise) --> <!-- 상단 영역 -->
<div class="overflow-y-auto px-4 py-3 {selectedDoc ? 'h-[30%] shrink-0 border-b border-[var(--border)]' : 'flex-1'}"> <div class="{selectedDoc ? 'h-[30%] shrink-0 border-b border-[var(--border)]' : 'flex-1'} flex flex-col min-h-0">
<!-- 업로드 드롭존 --> <!-- 업로드 드롭존 -->
<UploadDropzone onupload={loadDocuments} /> <UploadDropzone onupload={loadDocuments} />
<!-- 검색바 + 정보 버튼 --> <!-- 검색바 + 정보 버튼 (고정) -->
<div class="flex gap-2 mb-3"> <div class="flex gap-2 px-4 py-2 shrink-0">
<input <input
data-search-input data-search-input
type="text" type="text"
@@ -172,6 +172,8 @@
{/if} {/if}
</div> </div>
<!-- 스크롤 영역 (목록) -->
<div class="flex-1 overflow-y-auto px-4">
<!-- 결과 헤더 --> <!-- 결과 헤더 -->
{#if !loading} {#if !loading}
<div class="flex items-center justify-between mb-2"> <div class="flex items-center justify-between mb-2">
@@ -239,6 +241,7 @@
</div> </div>
{/if} {/if}
{/if} {/if}
</div>
</div> </div>
<!-- 하단: 뷰어 (70%, 전체 너비) --> <!-- 하단: 뷰어 (70%, 전체 너비) -->