Skip to content

Commit

Permalink
move dropdown menu to correct position (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuong-tran authored Aug 27, 2024
1 parent 77bc0fc commit 2d73e5e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import androidx.compose.material3.DropdownMenuItem
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.DpOffset
import androidx.compose.ui.unit.dp
import eu.kanade.presentation.manga.DownloadAction
import kotlinx.collections.immutable.persistentListOf
import tachiyomi.i18n.MR
Expand All @@ -16,6 +18,9 @@ fun DownloadDropdownMenu(
onDismissRequest: () -> Unit,
onDownloadClicked: (DownloadAction) -> Unit,
modifier: Modifier = Modifier,
// KMK -->
offset: DpOffset = DpOffset(0.dp, 0.dp),
// KMK <--
) {
val options = persistentListOf(
DownloadAction.NEXT_1_CHAPTER to pluralStringResource(MR.plurals.download_amount, 1, 1),
Expand All @@ -29,6 +34,9 @@ fun DownloadDropdownMenu(
expanded = expanded,
onDismissRequest = onDismissRequest,
modifier = modifier,
// KMK -->
offset = offset,
// KMK <--
) {
options.map { (downloadAction, string) ->
DropdownMenuItem(
Expand Down

0 comments on commit 2d73e5e

Please sign in to comment.