From 742fa142866790a89f4c334e0216f66c69f92367 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 2 Dec 2025 17:35:41 -0500 Subject: [PATCH] Fixes size of the score in the dm screen --- .../com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt index 1bc87a6fc..5af219d1b 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt @@ -39,6 +39,7 @@ import androidx.compose.ui.draw.clip import androidx.compose.ui.graphics.Color import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp @@ -512,6 +513,9 @@ fun ScoreTag( color = Color.White, fontWeight = FontWeight.Bold, fontSize = if (size > 34.dp) Font10SP else Font6SP, + maxLines = 1, + overflow = TextOverflow.Clip, + lineHeight = if (size > 34.dp) Font10SP else Font6SP, modifier = modifier .clip(SmallBorder)