From ae4d3b2d659802efa94124ebaeb23975c9166e82 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Sat, 19 Jul 2025 21:40:46 +0800 Subject: [PATCH] Use fixed width for archive download button --- app/src/main/kotlin/com/hippo/ehviewer/ui/main/ArchiveList.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/main/ArchiveList.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/main/ArchiveList.kt index a9206ceeb..4493f3637 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/main/ArchiveList.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/main/ArchiveList.kt @@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.width import androidx.compose.foundation.lazy.grid.GridCells import androidx.compose.foundation.lazy.grid.GridItemSpan import androidx.compose.foundation.lazy.grid.LazyVerticalGrid @@ -102,7 +103,7 @@ private fun ArchiveItem( text = cost, style = labelStyle, ) - Button(onClick = onClick, shapes = ButtonDefaults.shapes()) { + Button(onClick = onClick, shapes = ButtonDefaults.shapes(), modifier = Modifier.width(100.dp)) { Text(text = name) } Text(