From b594a32b96c5f938d892dc6bfbf88c9321aac9b7 Mon Sep 17 00:00:00 2001 From: SkepticMystic Date: Tue, 7 May 2024 10:19:49 +0200 Subject: [PATCH] fix(view:page): Finalise border rounding (thanks SlRvb <3) --- src/components/page_views/TrailView.svelte | 20 +++++-------------- .../page_views/TrailViewGrid.svelte | 14 ++++++++++++- .../page_views/TrailViewPath.svelte | 8 +++++++- 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/src/components/page_views/TrailView.svelte b/src/components/page_views/TrailView.svelte index f086a995..99fc1ff6 100644 --- a/src/components/page_views/TrailView.svelte +++ b/src/components/page_views/TrailView.svelte @@ -128,13 +128,11 @@ -
- {#if plugin.settings.views.page.trail.format === "grid"} - - {:else if plugin.settings.views.page.trail.format === "path"} - - {/if} -
+ {#if plugin.settings.views.page.trail.format === "grid"} + + {:else if plugin.settings.views.page.trail.format === "path"} + + {/if} {:else if plugin.settings.views.page.trail.no_path_message}

{plugin.settings.views.page.trail.no_path_message} @@ -142,11 +140,3 @@ {/if} {/key} - - diff --git a/src/components/page_views/TrailViewGrid.svelte b/src/components/page_views/TrailViewGrid.svelte index 7d6ed692..24fc7f74 100644 --- a/src/components/page_views/TrailViewGrid.svelte +++ b/src/components/page_views/TrailViewGrid.svelte @@ -51,7 +51,19 @@ grid-template-columns: {'1fr '.repeat(square.at(0)?.length ?? 0)};" diff --git a/src/components/page_views/TrailViewPath.svelte b/src/components/page_views/TrailViewPath.svelte index ea2cd43b..8406f8ab 100644 --- a/src/components/page_views/TrailViewPath.svelte +++ b/src/components/page_views/TrailViewPath.svelte @@ -11,7 +11,7 @@ const reversed = all_paths.map((path) => [...path].reverse()); -

+
{#each reversed as path}
{#each path as edge, j} @@ -42,6 +42,12 @@