Fix VK hashes dialog on landscape screens

This commit is contained in:
a.pustovalov committed 2026-06-09 15:42:50 +03:00
1 parent 12c3e585d5
commit e3dc7057cb
1 file changed
+21 -2
@@ -994,15 +994,26 @@ fun HashesDialog(
var h3 by remember { mutableStateOf(hash3) }
var h4 by remember { mutableStateOf(hash4) }
Dialog(onDismissRequest = onDismiss) {
Dialog(
onDismissRequest = onDismiss,
properties = DialogProperties(usePlatformDefaultWidth = false)
) {
Surface(
modifier = Modifier
.fillMaxWidth()
.fillMaxHeight(0.95f)
.imePadding()
.padding(horizontal = 16.dp, vertical = 12.dp)
.widthIn(max = 560.dp),
shape = RoundedCornerShape(24.dp),
color = MaterialTheme.colorScheme.surface,
contentColor = MaterialTheme.colorScheme.onSurface,
tonalElevation = 8.dp
) {
Column(
modifier = Modifier.padding(24.dp).fillMaxWidth(),
modifier = Modifier
.padding(24.dp)
.fillMaxWidth(),
verticalArrangement = Arrangement.spacedBy(12.dp)
) {
Row(
@@ -1027,6 +1038,13 @@ fun HashesDialog(
modifier = Modifier.padding(bottom = 4.dp)
)
Column(
modifier = Modifier
.fillMaxWidth()
.weight(1f, fill = false)
.verticalScroll(rememberScrollState()),
verticalArrangement = Arrangement.spacedBy(12.dp)
) {
listOf(
Triple("VK Хеш 1 *", h1) { v: String -> h1 = v },
Triple("VK Хеш 2", h2) { v: String -> h2 = v },
@@ -1051,6 +1069,7 @@ fun HashesDialog(
shape = RoundedCornerShape(16.dp),
)
}
}
Button(
onClick = {