From 9801f03ce402855205754d9b72e2aca50bfc279b Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 11 Jul 2026 03:06:24 +0000 Subject: [PATCH] fix: make the PoW pill in note headers a bit smaller Shrinks the DisplayPoW icon and text from 12 to 10 (dp/sp) and trims horizontal padding so the pill takes less space inline in NoteCompose headers. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01PbpEL8rRBwLd2mgbAqBPvX --- .../vitorpamplona/amethyst/ui/note/elements/DisplayPoW.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/elements/DisplayPoW.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/elements/DisplayPoW.kt index 7324d6d65d..e257452632 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/elements/DisplayPoW.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/elements/DisplayPoW.kt @@ -64,19 +64,19 @@ fun DisplayPoW(pow: Int) { Modifier .clip(RoundedCornerShape(50)) .background(MaterialTheme.colorScheme.secondaryContainer) - .padding(horizontal = 6.dp, vertical = 1.dp), + .padding(horizontal = 5.dp, vertical = 1.dp), ) { Icon( symbol = MaterialSymbols.Manufacturing, contentDescription = stringRes(R.string.pow_settings_title), tint = MaterialTheme.colorScheme.onSecondaryContainer, - modifier = Modifier.size(12.dp), + modifier = Modifier.size(10.dp), ) Text( text = pow.toString(), color = MaterialTheme.colorScheme.onSecondaryContainer, - fontSize = 12.sp, - lineHeight = 12.sp, + fontSize = 10.sp, + lineHeight = 10.sp, fontWeight = FontWeight.Bold, maxLines = 1, )