File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/src/main/java/org/schabi/newpipe/ui/components/menu Expand file tree Collapse file tree 1 file changed +8
-2
lines changed 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,21 @@ 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) {
435- remember(activeDragSize) { activeDragSize.toSize().toDpSize() }
437+ remember(activeDragSize) { ( activeDragSize.toSize() * 1.3f ).toDpSize() }
436438 }
437439 ItemInListUi (
438440 item = activeDragItem!! ,
439441 selected = false ,
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+ .background(
447+ color = MaterialTheme .colorScheme.surfaceContainerHighest,
448+ shape = MaterialTheme .shapes.large,
449+ ),
444450 )
445451 }
446452 }
You can’t perform that action at this time.
0 commit comments