From fd8b97fc87b1a477b61052a758716df86005e044 Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 5 Apr 2023 22:36:57 -0400 Subject: [PATCH] Better handle overflowing content in MigrateDialog actions Fixes #9207 (cherry picked from commit b7cd7b8b4e7a2f0a544f36f40b2e352286f739b2) --- .../tachiyomi/ui/browse/migration/search/MigrateDialog.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/MigrateDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/MigrateDialog.kt index b0db140a5d..b70fe93d46 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/MigrateDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/search/MigrateDialog.kt @@ -2,7 +2,9 @@ package eu.kanade.tachiyomi.ui.browse.migration.search import androidx.compose.foundation.background import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.FlowRow import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxWidth @@ -23,6 +25,7 @@ import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.stringResource +import androidx.compose.ui.unit.dp import androidx.compose.ui.util.fastForEachIndexed import cafe.adriel.voyager.core.model.StateScreenModel import eu.kanade.domain.category.interactor.SetMangaCategories @@ -111,7 +114,9 @@ internal fun MigrateDialog( } }, confirmButton = { - Row { + FlowRow( + horizontalArrangement = Arrangement.spacedBy(4.dp), + ) { TextButton( onClick = { onClickTitle()