fix: improve dots indicator layout and enhance image counter visibility in ImageViewerScreen
This commit is contained in:
@@ -241,6 +241,9 @@ fun ImageViewerScreen(
|
||||
.align(Alignment.BottomCenter)
|
||||
.padding(bottom = 32.dp)
|
||||
.navigationBarsPadding()
|
||||
) {
|
||||
Column(
|
||||
horizontalAlignment = Alignment.CenterHorizontally
|
||||
) {
|
||||
// Dots indicator
|
||||
Row(
|
||||
@@ -264,13 +267,14 @@ fun ImageViewerScreen(
|
||||
)
|
||||
)
|
||||
}
|
||||
// Показываем счетчик если больше 10 фото
|
||||
}
|
||||
// Показываем счетчик под точками если больше 10 фото
|
||||
if (images.size > 10) {
|
||||
Spacer(modifier = Modifier.height(6.dp))
|
||||
Text(
|
||||
text = "${pagerState.currentPage + 1}/${images.size}",
|
||||
color = Color.White,
|
||||
fontSize = 12.sp,
|
||||
modifier = Modifier.padding(start = 4.dp)
|
||||
color = Color.White.copy(alpha = 0.8f),
|
||||
fontSize = 12.sp
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user