From ae653a77c9e0b0378e505d838cdfc4aa721a2338 Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Sat, 19 Jul 2025 16:41:04 +0200 Subject: [PATCH] feat: add titles to join and registration dates --- components/Modal/ProfilePopup.vue | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/components/Modal/ProfilePopup.vue b/components/Modal/ProfilePopup.vue index 5f674fb..a558320 100644 --- a/components/Modal/ProfilePopup.vue +++ b/components/Modal/ProfilePopup.vue @@ -15,7 +15,7 @@ {{ pronouns }} -
Status goes here lorem ipsum or something
+
@@ -35,21 +35,21 @@
- + @@ -75,13 +75,17 @@ const username = getUsername(props.profile) const pronouns = getPronouns(props.profile) const aboutMe = getAboutMe(props.profile) -const registrationDate = getRegistrationDate(props.profile)?.toLocaleDateString(undefined, { day: '2-digit', month: 'short', year: 'numeric' }) -const joinDate = getGuildJoinDate(props.profile)?.toLocaleDateString(undefined, { day: '2-digit', month: 'short', year: 'numeric' }) -const friendsSince = friendsSinceRequest?.toLocaleDateString(undefined, { day: '2-digit', month: 'short', year: 'numeric' }) +const registrationDate = getRegistrationDate(props.profile) +const joinDate = getGuildJoinDate(props.profile) +const friendsSince = friendsSinceRequest const uuid = getUuid(props.profile) const me = await fetchMe() as UserResponse +function toDateString(date: Date): string { + return date.toLocaleDateString(undefined, { day: '2-digit', month: 'short', year: 'numeric' }) +} + function buttonSendMessage() { navigateTo(`/me/${uuid}`) } @@ -163,7 +167,6 @@ function buttonEditProfile() { } #username-and-pronouns { - margin-top: -0.2em; font-size: .9em; color: var(--secondary-text-color); }