Revert "android, desktop: ability to scroll in all alerts if screen is small (#5470)" (#5509)

This reverts commit 2793692a16.
This commit is contained in:
Stanislav Dmitrenko authored and GitHub committed 2025-01-10 22:05:05 +00:00
1 parent 3f116c01d3
commit 821f034d18
1 file changed
+5 -2
@@ -297,7 +297,7 @@ private fun AlertContent(
belowTextContent: @Composable (() -> Unit) = {},
content: @Composable (() -> Unit)
) {
BoxWithConstraints(Modifier.verticalScroll(rememberScrollState())) {
BoxWithConstraints {
Column(
Modifier
.padding(bottom = if (appPlatform.isDesktop) DEFAULT_PADDING else DEFAULT_PADDING_HALF)
@@ -311,6 +311,7 @@ private fun AlertContent(
if (text != null) {
Column(Modifier.heightIn(max = this@BoxWithConstraints.maxHeight * 0.7f)
.padding(start = DEFAULT_PADDING, end = DEFAULT_PADDING)
.verticalScroll(rememberScrollState())
) {
SelectionContainer {
Text(
@@ -333,9 +334,10 @@ private fun AlertContent(
@Composable
private fun AlertContent(text: AnnotatedString?, hostDevice: Pair<Long?, String>?, extraPadding: Boolean = false, content: @Composable (() -> Unit)) {
BoxWithConstraints(Modifier.verticalScroll(rememberScrollState())) {
BoxWithConstraints {
Column(
Modifier
.verticalScroll(rememberScrollState())
.padding(bottom = if (appPlatform.isDesktop) DEFAULT_PADDING else DEFAULT_PADDING_HALF)
) {
if (appPlatform.isDesktop) {
@@ -347,6 +349,7 @@ private fun AlertContent(text: AnnotatedString?, hostDevice: Pair<Long?, String>
if (text != null) {
Column(
Modifier.heightIn(max = this@BoxWithConstraints.maxHeight * 0.7f)
.verticalScroll(rememberScrollState())
) {
SelectionContainer {
Text(