From 96f6db41db2a34645a23c3aa4d02795d615ab24a Mon Sep 17 00:00:00 2001
From: Face <69168154+face-hh@users.noreply.github.com>
Date: Sun, 8 Jun 2025 21:16:21 +0300
Subject: [PATCH] fix username overflows
---
.../lib/components/self/CommentSection.svelte | 10 +--
.../components/self/UserProfilePreview.svelte | 6 +-
website/src/routes/+page.svelte | 7 ++-
.../src/routes/coin/[coinSymbol]/+page.svelte | 8 ++-
website/src/routes/hopium/[id]/+page.svelte | 62 ++++++++++---------
5 files changed, 50 insertions(+), 43 deletions(-)
diff --git a/website/src/lib/components/self/CommentSection.svelte b/website/src/lib/components/self/CommentSection.svelte
index 02c426c..a2c89d1 100644
--- a/website/src/lib/components/self/CommentSection.svelte
+++ b/website/src/lib/components/self/CommentSection.svelte
@@ -228,10 +228,10 @@
goto(`/user/${comment.userUsername}`)}
>
- {comment.userName}
+ {comment.userName}
@@ -239,13 +239,13 @@
-
+
{formatTimeAgo(comment.createdAt)}
diff --git a/website/src/lib/components/self/UserProfilePreview.svelte b/website/src/lib/components/self/UserProfilePreview.svelte
index 097c69c..8fc1ff4 100644
--- a/website/src/lib/components/self/UserProfilePreview.svelte
+++ b/website/src/lib/components/self/UserProfilePreview.svelte
@@ -85,8 +85,10 @@
{profile.name?.charAt(0) || '?'}
-
-
{profile.name}
+
@{profile.username}
diff --git a/website/src/routes/+page.svelte b/website/src/routes/+page.svelte
index 4aff858..e51493d 100644
--- a/website/src/routes/+page.svelte
+++ b/website/src/routes/+page.svelte
@@ -74,7 +74,7 @@
];
-
- {:else}
+ {:else}
+
{#each coins.slice(0, 6) as coin (coin.symbol)}
diff --git a/website/src/routes/coin/[coinSymbol]/+page.svelte b/website/src/routes/coin/[coinSymbol]/+page.svelte
index 1b5f0fd..260f617 100644
--- a/website/src/routes/coin/[coinSymbol]/+page.svelte
+++ b/website/src/routes/coin/[coinSymbol]/+page.svelte
@@ -449,14 +449,16 @@
goto(`/user/${coin.creatorUsername}`)}
>
-
+
{coin.creatorName.charAt(0)}
- {coin.creatorName} (@{coin.creatorUsername})
+ {coin.creatorName} (@{coin.creatorUsername})
diff --git a/website/src/routes/hopium/[id]/+page.svelte b/website/src/routes/hopium/[id]/+page.svelte
index 2258dd3..5d4fa17 100644
--- a/website/src/routes/hopium/[id]/+page.svelte
+++ b/website/src/routes/hopium/[id]/+page.svelte
@@ -226,7 +226,9 @@
{question.question}
{#if question.status === 'ACTIVE'}
- {formatTimeUntil(question.resolutionDate).startsWith('Ended') ? 'Resolving' : `Ends in ${formatTimeUntil(question.resolutionDate)}`}
+ {formatTimeUntil(question.resolutionDate).startsWith('Ended')
+ ? 'Resolving'
+ : `Ends in ${formatTimeUntil(question.resolutionDate)}`}
{/if}
@@ -249,7 +251,7 @@
goto(`/user/${question?.creator.username}`)}
>
@@ -259,7 +261,7 @@
/>
{question.creator.username.charAt(0)}
- {question.creator.name} (@{question.creator.username})
+ {question.creator.name} (@{question.creator.username})
@@ -315,32 +317,32 @@
-
-
+
+
@@ -356,7 +358,7 @@
-