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 @@ -21,6 +21,7 @@ package org.schabi.newpipe.ui.components.menu
2121import android.util.Log
2222import androidx.annotation.StringRes
2323import androidx.compose.foundation.BorderStroke
24+ import androidx.compose.foundation.background
2425import androidx.compose.foundation.border
2526import androidx.compose.foundation.gestures.scrollBy
2627import androidx.compose.foundation.layout.BoxWithConstraints
@@ -431,16 +432,18 @@ fun LongPressMenuEditor(modifier: Modifier = Modifier) {
431432 }
432433 }
433434 if (activeDragItem != null ) {
435+ // draw it the same size as the selected item,
434436 val size = with (LocalDensity .current) {
435437 remember(activeDragSize) { activeDragSize.toSize().toDpSize() }
436438 }
437439 ItemInListUi (
438440 item = activeDragItem!! ,
439- selected = false ,
441+ selected = true ,
440442 modifier = Modifier
441443 .size(size)
442444 .offset { activeDragPosition }
443- .offset(- size.width / 2 , - size.height / 2 ),
445+ .offset(- size.width / 2 , - size.height / 2 )
446+ .offset((- 24 ).dp, (- 24 ).dp),
444447 )
445448 }
446449 }
You can’t perform that action at this time.
0 commit comments