From db3259a43d56b11aa8ac51c3bce100897a93c68e Mon Sep 17 00:00:00 2001 From: DecafDev <40307803+decaf-dev@users.noreply.github.com> Date: Tue, 6 Aug 2024 19:16:27 -0600 Subject: [PATCH 1/3] fix: stop jumping on table when filtering --- src/svelte/app/components/table-view.svelte | 66 ++++++++++++++++----- 1 file changed, 52 insertions(+), 14 deletions(-) diff --git a/src/svelte/app/components/table-view.svelte b/src/svelte/app/components/table-view.svelte index 6d62e06..739063a 100644 --- a/src/svelte/app/components/table-view.svelte +++ b/src/svelte/app/components/table-view.svelte @@ -224,16 +224,66 @@ } .vault-explorer-table-view table { + table-layout: fixed; border-collapse: collapse; } - .vault-explorer-table-view th:first-child, - .vault-explorer-table-view td:first-child { + .vault-explorer-table-view th:nth-child(1), + .vault-explorer-table-view td:nth-child(1) { + min-width: 300px; width: 300px; max-width: 300px; overflow: hidden; } + .vault-explorer-table-view th:nth-child(2), + .vault-explorer-table-view td:nth-child(2) { + min-width: 125px; + width: 125px; + max-width: 125px; + overflow: hidden; + } + + .vault-explorer-table-view th:nth-child(3), + .vault-explorer-table-view td:nth-child(3) { + min-width: 150px; + width: 150px; + max-width: 150px; + overflow: hidden; + } + + .vault-explorer-table-view th:nth-child(4), + .vault-explorer-table-view td:nth-child(4) { + min-width: 200px; + width: 200px; + max-width: 200px; + overflow: hidden; + } + + .vault-explorer-table-view th:nth-child(5), + .vault-explorer-table-view td:nth-child(5) { + min-width: 100px; + width: 100px; + max-width: 100px; + overflow: hidden; + } + + .vault-explorer-table-view th:nth-child(6), + .vault-explorer-table-view td:nth-child(6) { + min-width: 175px; + width: 175px; + max-width: 175px; + overflow: hidden; + } + + .vault-explorer-table-view th:nth-child(7), + .vault-explorer-table-view td:nth-child(7) { + min-width: 175px; + width: 175px; + max-width: 175px; + overflow: hidden; + } + .vault-explorer-table-view__title { width: 100%; } @@ -256,18 +306,6 @@ padding: 8px; } - .vault-explorer-table-view th:nth-child(4) { - min-width: 250px; - } - - .vault-explorer-table-view th:nth-child(6) { - min-width: 175px; - } - - .vault-explorer-table-view th:nth-child(7) { - min-width: 175px; - } - .vault-explorer-table-view tr:hover:not(:has(th)) { background-color: var(--background-modifier-hover); } From c8f953db7502a0c685e7485c1786979e7a019e4e Mon Sep 17 00:00:00 2001 From: DecafDev <40307803+decaf-dev@users.noreply.github.com> Date: Tue, 6 Aug 2024 19:24:28 -0600 Subject: [PATCH 2/3] fix: hide tags container when screen size is small and list view is selected (#306) --- src/svelte/app/components/list-item.svelte | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/svelte/app/components/list-item.svelte b/src/svelte/app/components/list-item.svelte index bb8400b..18b07aa 100644 --- a/src/svelte/app/components/list-item.svelte +++ b/src/svelte/app/components/list-item.svelte @@ -99,6 +99,8 @@ }); } + $: console.log(tags); + $: tagsClassName = `vault-explorer-list-item__tags ${isSmallScreenSize ? "vault-explorer-list-item__tags--screen-size-sm" : ""}`; $: titleClassName = `vault-explorer-list-item__title ${isSmallScreenSize ? "vault-explorer-list-item__title--screen-size-sm" : ""}`; @@ -148,19 +150,17 @@ - {#if showTags} + {#if showTags && tags !== null}
- {#if tags !== null} - - {#each tags as tag} - - {/each} - - {/if} + + {#each tags as tag} + + {/each} +
{/if} From 597ee241ece7601d0975189a9847e921e6f6d354 Mon Sep 17 00:00:00 2001 From: DecafDev <40307803+decaf-dev@users.noreply.github.com> Date: Tue, 6 Aug 2024 19:25:13 -0600 Subject: [PATCH 3/3] chore: bump version --- manifest.json | 2 +- package.json | 2 +- versions.json | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 660b997..c151ea8 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "vault-explorer", "name": "Vault Explorer", - "version": "1.40.0", + "version": "1.40.1", "minAppVersion": "1.4.13", "description": "Explore your vault in visual format", "author": "DecafDev", diff --git a/package.json b/package.json index be48ab0..0924c83 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-vault-explorer", - "version": "1.40.0", + "version": "1.40.1", "description": "Explore your vault in visual format", "main": "main.js", "scripts": { diff --git a/versions.json b/versions.json index 7c5c22d..3fec4a9 100644 --- a/versions.json +++ b/versions.json @@ -132,5 +132,6 @@ "1.37.2": "1.4.13", "1.38.0": "1.4.13", "1.39.0": "1.4.13", - "1.40.0": "1.4.13" + "1.40.0": "1.4.13", + "1.40.1": "1.4.13" }