This commit is contained in:
Baobhan Sith
2025-05-23 19:23:22 +08:00
parent ae60e0c398
commit 4bf1cac37c
2 changed files with 6 additions and 5 deletions
@@ -223,9 +223,9 @@ onBeforeUnmount(() => {
<!-- Path List -->
<div class="overflow-y-auto flex-grow p-1 text-sm">
<ul v-if="!favoritePathsStore.isLoading && favoritePathsStore.filteredFavoritePaths.length" class="list-none m-0 p-0">
<ul v-if="!favoritePathsStore.isLoading && filteredPaths.length" class="list-none m-0 p-0">
<li
v-for="favPath in favoritePathsStore.filteredFavoritePaths"
v-for="favPath in filteredPaths"
:key="favPath.id"
class="p-2 hover:bg-primary/10 cursor-pointer group flex items-center justify-between rounded-md transition-colors duration-150"
@click="handleItemClick(favPath)"
@@ -1634,9 +1634,7 @@ const handleOpenEditorClick = () => {
<!-- <button @click="searchQuery = ''; searchInputRef?.focus()" v-if="searchQuery" class="absolute right-2 top-1/2 -translate-y-1/2 text-text-secondary hover:text-foreground">&times;</button> -->
</div>
</div>
</div> <!-- End Path Actions -->
<!-- Wrapper for Favorite Paths Button and Modal -->
<div class="relative flex-shrink-0">
<div class="relative flex-shrink-0">
<!-- Favorite Paths Button -->
<button
ref="favoritePathsButtonRef"
@@ -1653,6 +1651,9 @@ const handleOpenEditorClick = () => {
@navigate-to-path="handleNavigateToPathFromFavorites"
/>
</div>
</div>
<!-- Path Bar with History Dropdown -->
<div ref="pathInputWrapperRef" class="relative flex items-center bg-background border border-border rounded px-1.5 py-0.5 min-w-[100px] flex-shrink">