File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/ui/components/menu Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,8 +28,10 @@ import androidx.compose.foundation.layout.heightIn
2828import androidx.compose.foundation.layout.padding
2929import androidx.compose.foundation.layout.size
3030import androidx.compose.foundation.layout.widthIn
31+ import androidx.compose.foundation.rememberScrollState
3132import androidx.compose.foundation.text.InlineTextContent
3233import androidx.compose.foundation.text.appendInlineContent
34+ import androidx.compose.foundation.verticalScroll
3335import androidx.compose.material.icons.Icons
3436import androidx.compose.material.icons.automirrored.filled.OpenInNew
3537import androidx.compose.material.icons.automirrored.filled.PlaylistPlay
@@ -242,8 +244,12 @@ private fun LongPressMenuContent(
242244 // width for the landscape/reduced header, measured in button widths
243245 val headerWidthInButtonsReducedSpan = 4
244246 val buttonsPerRow = (this .maxWidth / MinButtonWidth ).toInt()
247+ val scrollState = rememberScrollState()
245248
246- Column {
249+ Column (
250+ modifier = Modifier
251+ .verticalScroll(scrollState)
252+ ) {
247253 var actionIndex = if (header != null ) - 1 else 0 // -1 indicates the header
248254 while (actionIndex < actions.size) {
249255 Row (
You can’t perform that action at this time.
0 commit comments