fix: improve dots indicator layout and enhance image counter visibility in ImageViewerScreen

This commit is contained in:
k1ngsterr1
2026-01-31 19:23:07 +05:00
parent 2c3b34783c
commit 196cc9c4a2

View File

@@ -241,6 +241,9 @@ fun ImageViewerScreen(
.align(Alignment.BottomCenter) .align(Alignment.BottomCenter)
.padding(bottom = 32.dp) .padding(bottom = 32.dp)
.navigationBarsPadding() .navigationBarsPadding()
) {
Column(
horizontalAlignment = Alignment.CenterHorizontally
) { ) {
// Dots indicator // Dots indicator
Row( Row(
@@ -264,13 +267,14 @@ fun ImageViewerScreen(
) )
) )
} }
// Показываем счетчик если больше 10 фото }
// Показываем счетчик под точками если больше 10 фото
if (images.size > 10) { if (images.size > 10) {
Spacer(modifier = Modifier.height(6.dp))
Text( Text(
text = "${pagerState.currentPage + 1}/${images.size}", text = "${pagerState.currentPage + 1}/${images.size}",
color = Color.White, color = Color.White.copy(alpha = 0.8f),
fontSize = 12.sp, fontSize = 12.sp
modifier = Modifier.padding(start = 4.dp)
) )
} }
} }