From 5f435f7250edd4047a11fb504ac5b320e3503050 Mon Sep 17 00:00:00 2001 From: Hazel K Date: Mon, 7 Oct 2024 16:26:30 -0400 Subject: [PATCH] restore sorting of pinned notes --- packages/frontend/src/pages/user/home.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index bb3a47813b..2ec47889d6 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -156,13 +156,13 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
{{ i18n.ts.noNotes }}
- - - +
+ +
@@ -205,7 +205,6 @@ import { isFollowingVisibleForMe, isFollowersVisibleForMe } from '@/scripts/isFf import { useRouter } from '@/router/supplier.js'; import { getStaticImageUrl } from '@/scripts/media-proxy.js'; import { infoImageUrl } from '@/instance.js'; -import MkDateSeparatedList from '@/components/MkDateSeparatedList.vue'; const MkNote = defineAsyncComponent(() => (defaultStore.state.noteDesign === 'misskey') ? import('@/components/MkNote.vue') : @@ -255,9 +254,6 @@ const moderationNote = ref(props.user.moderationNote); const editModerationNote = ref(false); const noteview = ref(null); -// Sort pinned notes by date to match the other columns and ensure that MkDateSeparatedList does not break. -const pinnedNotes = computed(() => Array.from(user.value.pinnedNotes).sort((a, b) => b.id.localeCompare(a.id))); - const listenbrainzdata = ref(false); if (props.user.listenbrainz) { (async function() { @@ -827,4 +823,8 @@ onUnmounted(() => { margin-left: 4px; color: var(--success); } + +.pinnedNote:not(:last-child) { + border-bottom: solid 0.5px var(--divider); +}