diff --git a/app/src/main/kotlin/com/example/myapplication/screens/LibraryScreen.kt b/app/src/main/kotlin/com/example/myapplication/screens/LibraryScreen.kt index 0246953..f26e886 100644 --- a/app/src/main/kotlin/com/example/myapplication/screens/LibraryScreen.kt +++ b/app/src/main/kotlin/com/example/myapplication/screens/LibraryScreen.kt @@ -989,26 +989,33 @@ private fun ManageIconLibraryDialog( // Icon preview if (library.icons.isNotEmpty()) { Text(stringResource(Res.string.icon_lib_preview), fontSize = 13.sp, color = GlassTokens.subtext, fontWeight = FontWeight.Medium) - LazyVerticalGrid( - columns = GridCells.Fixed(5), - modifier = Modifier.heightIn(min = 80.dp, max = 160.dp), - horizontalArrangement = Arrangement.spacedBy(6.dp), - verticalArrangement = Arrangement.spacedBy(6.dp), + Box( + Modifier.fillMaxWidth() + .heightIn(min = 80.dp, max = 160.dp) + .clip(RoundedCornerShape(16.dp)) + .border(0.6.dp, GlassTokens.glassBorder, RoundedCornerShape(16.dp)) + .padding(8.dp), ) { - items(library.icons) { icon -> - Box( - modifier = Modifier.aspectRatio(1f) - .clip(RoundedCornerShape(8.dp)) - .border(0.6.dp, GlassTokens.glassBorder, RoundedCornerShape(8.dp)) - .padding(2.dp), - contentAlignment = Alignment.Center, - ) { - LumaAsyncImage( - model = ImageRequest.Builder(LocalContext.current).data(icon.url).crossfade(true).build(), - contentDescription = icon.name, - contentScale = ContentScale.Crop, - modifier = Modifier.fillMaxSize().clip(RoundedCornerShape(6.dp)), - ) + LazyVerticalGrid( + columns = GridCells.Fixed(5), + modifier = Modifier.fillMaxSize(), + horizontalArrangement = Arrangement.spacedBy(6.dp), + verticalArrangement = Arrangement.spacedBy(6.dp), + ) { + items(library.icons) { icon -> + Box( + modifier = Modifier.aspectRatio(1f) + .clip(RoundedCornerShape(12.dp)) + .border(0.6.dp, GlassTokens.glassBorder, RoundedCornerShape(12.dp)), + contentAlignment = Alignment.Center, + ) { + LumaAsyncImage( + model = ImageRequest.Builder(LocalContext.current).data(icon.url).crossfade(true).build(), + contentDescription = icon.name, + contentScale = ContentScale.Crop, + modifier = Modifier.fillMaxSize().padding(4.dp).clip(RoundedCornerShape(10.dp)), + ) + } } } }