Skip to content

Commit

Permalink
Merge pull request #358 from decaf-dev/dev
Browse files Browse the repository at this point in the history
1.44.6
  • Loading branch information
decaf-dev authored Sep 13, 2024
2 parents 1cee3e1 + cc0132b commit 83b431b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 29 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "vault-explorer",
"name": "Vault Explorer",
"version": "1.44.5",
"version": "1.44.6",
"minAppVersion": "1.4.13",
"description": "Explore your vault in visual format",
"author": "DecafDev",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-vault-explorer",
"version": "1.44.5",
"version": "1.44.6",
"description": "Explore your vault in visual format",
"main": "main.js",
"scripts": {
Expand Down
57 changes: 31 additions & 26 deletions src/svelte/shared/components/search-select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
function closeDropdown() {
isOpen = false;
inputValue = "";
inputValue = value;
currentFocusIndex = 0;
}
Expand Down Expand Up @@ -157,22 +157,31 @@
bind:this={dropdownRef}
use:portalAction
>
{#each filteredOptions as option, i}
<div
tabindex="-1"
role="option"
aria-selected={option === value}
class="vault-explorer-search-select__dropdown-item"
class:vault-explorer-search-select__dropdown-item--selected={currentFocusIndex ===
i}
on:mousedown={handleOptionMouseDown}
on:click={(e) => handleOptionClick(option)}
on:keydown={() => {}}
>
{option}
</div>
{/each}
{#if filteredOptions.length > 0}
<div class="vault-explorer-search-select__dropdown-container">
{#each filteredOptions as option, i}
<div
tabindex="-1"
role="option"
aria-selected={option === value}
class="vault-explorer-search-select__dropdown-item"
class:vault-explorer-search-select__dropdown-item--selected={currentFocusIndex ===
i}
on:mousedown={handleOptionMouseDown}
on:click={(e) => handleOptionClick(option)}
on:keydown={() => {}}
>
{option}
</div>
{/each}
{#if filteredOptions.length === 0}
<div
class="vault-explorer-search-select__dropdown-item vault-explorer-search-select__dropdown-item--empty"
>
No results found
</div>
{/if}
</div>
{#if value !== ""}
<Divider />
<div
tabindex="-1"
Expand All @@ -186,13 +195,6 @@
Clear
</div>
{/if}
{#if filteredOptions.length === 0}
<div
class="vault-explorer-search-select__dropdown-item vault-explorer-search-select__dropdown-item--empty"
>
No results found
</div>
{/if}
</div>
{/if}
</div>
Expand All @@ -211,8 +213,6 @@
position: absolute;
background-color: var(--dropdown-background);
box-shadow: var(--input-shadow);
max-height: 175px;
overflow-y: auto;
z-index: 999;
color: var(--text-normal);
font-size: var(--font-ui-small);
Expand All @@ -221,6 +221,11 @@
border-radius: var(--input-radius);
}
.vault-explorer-search-select__dropdown-container {
max-height: 145px;
overflow-y: auto;
}
.vault-explorer-search-select__input-icon {
position: absolute;
top: 50%;
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,6 @@
"1.44.2": "1.4.13",
"1.44.3": "1.4.13",
"1.44.4": "1.4.13",
"1.44.5": "1.4.13"
"1.44.5": "1.4.13",
"1.44.6": "1.4.13"
}

0 comments on commit 83b431b

Please sign in to comment.