multiplatform: layout fix on link creation page and self destruct option (#3012)

This commit is contained in:
Stanislav Dmitrenko 2023-09-05 01:21:29 +03:00 committed by GitHub
parent 0ec3e0c18d
commit 8aed568199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -393,9 +393,13 @@ fun SettingsActionItemWithContent(icon: Painter?, text: String? = null, click: (
val padding = with(LocalDensity.current) { 6.sp.toDp() }
Text(text, Modifier.weight(1f).padding(vertical = padding), color = if (disabled) MaterialTheme.colors.secondary else MaterialTheme.colors.onBackground)
Spacer(Modifier.width(DEFAULT_PADDING))
}
Row(Modifier.widthIn(max = (windowWidth() - DEFAULT_PADDING * 2) / 2)) {
content()
Row(Modifier.widthIn(max = (windowWidth() - DEFAULT_PADDING * 2) / 2)) {
content()
}
} else {
Row {
content()
}
}
}
}