From a7f922178c7cb20747442421aaf28e30a04a4f2b Mon Sep 17 00:00:00 2001 From: HoaX7 Date: Sat, 19 Oct 2024 01:21:05 +0530 Subject: [PATCH] fix: titlebar icon fix on windows --- app/src/lib/components/customWindow/Windows.svelte | 2 +- app/src/lib/components/sidebar/Index.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/lib/components/customWindow/Windows.svelte b/app/src/lib/components/customWindow/Windows.svelte index a51a461..8450c9b 100644 --- a/app/src/lib/components/customWindow/Windows.svelte +++ b/app/src/lib/components/customWindow/Windows.svelte @@ -39,7 +39,7 @@
{#each titlebar as item} {/each}
diff --git a/app/src/lib/components/sidebar/Index.svelte b/app/src/lib/components/sidebar/Index.svelte index 7eb2bc5..f9be01d 100644 --- a/app/src/lib/components/sidebar/Index.svelte +++ b/app/src/lib/components/sidebar/Index.svelte @@ -101,7 +101,7 @@ const curdate = dt.getDate(); const curmonth = dt.getMonth(); $: { - groupedPages = pages.reduce((acc, r) => { + groupedPages = pages.sort((a, b) => (a.modified < b.modified ? 1 : -1)).reduce((acc, r) => { const [yy, mm, dd] = [ r.modified.getFullYear(), r.modified.getMonth(),