Merge pull request #178 from frenzydrive/fix-landscape-vk-hashes-dialog
Fix VK hashes dialog on landscape screens
This commit is contained in:
commit
3c59ab01f7
1 file changed
+21
-2
@@ -994,15 +994,26 @@ fun HashesDialog(
|
|||||||
var h3 by remember { mutableStateOf(hash3) }
|
var h3 by remember { mutableStateOf(hash3) }
|
||||||
var h4 by remember { mutableStateOf(hash4) }
|
var h4 by remember { mutableStateOf(hash4) }
|
||||||
|
|
||||||
Dialog(onDismissRequest = onDismiss) {
|
Dialog(
|
||||||
|
onDismissRequest = onDismiss,
|
||||||
|
properties = DialogProperties(usePlatformDefaultWidth = false)
|
||||||
|
) {
|
||||||
Surface(
|
Surface(
|
||||||
|
modifier = Modifier
|
||||||
|
.fillMaxWidth()
|
||||||
|
.fillMaxHeight(0.95f)
|
||||||
|
.imePadding()
|
||||||
|
.padding(horizontal = 16.dp, vertical = 12.dp)
|
||||||
|
.widthIn(max = 560.dp),
|
||||||
shape = RoundedCornerShape(24.dp),
|
shape = RoundedCornerShape(24.dp),
|
||||||
color = MaterialTheme.colorScheme.surface,
|
color = MaterialTheme.colorScheme.surface,
|
||||||
contentColor = MaterialTheme.colorScheme.onSurface,
|
contentColor = MaterialTheme.colorScheme.onSurface,
|
||||||
tonalElevation = 8.dp
|
tonalElevation = 8.dp
|
||||||
) {
|
) {
|
||||||
Column(
|
Column(
|
||||||
modifier = Modifier.padding(24.dp).fillMaxWidth(),
|
modifier = Modifier
|
||||||
|
.padding(24.dp)
|
||||||
|
.fillMaxWidth(),
|
||||||
verticalArrangement = Arrangement.spacedBy(12.dp)
|
verticalArrangement = Arrangement.spacedBy(12.dp)
|
||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
@@ -1027,6 +1038,13 @@ fun HashesDialog(
|
|||||||
modifier = Modifier.padding(bottom = 4.dp)
|
modifier = Modifier.padding(bottom = 4.dp)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Column(
|
||||||
|
modifier = Modifier
|
||||||
|
.fillMaxWidth()
|
||||||
|
.weight(1f, fill = false)
|
||||||
|
.verticalScroll(rememberScrollState()),
|
||||||
|
verticalArrangement = Arrangement.spacedBy(12.dp)
|
||||||
|
) {
|
||||||
listOf(
|
listOf(
|
||||||
Triple("VK Хеш 1 *", h1) { v: String -> h1 = v },
|
Triple("VK Хеш 1 *", h1) { v: String -> h1 = v },
|
||||||
Triple("VK Хеш 2", h2) { v: String -> h2 = v },
|
Triple("VK Хеш 2", h2) { v: String -> h2 = v },
|
||||||
@@ -1051,6 +1069,7 @@ fun HashesDialog(
|
|||||||
shape = RoundedCornerShape(16.dp),
|
shape = RoundedCornerShape(16.dp),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Button(
|
Button(
|
||||||
onClick = {
|
onClick = {
|
||||||
|
|||||||
Reference in new issue
Block a user