fix: keep the dragged queue row opaque
This commit is contained in:
1 parent
a63ee62673
commit
cfab559e5e
1 file changed
+2
@@ -1,5 +1,6 @@
|
|||||||
package win.taptap.musicmanager.client.ui
|
package win.taptap.musicmanager.client.ui
|
||||||
|
|
||||||
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.gestures.detectDragGesturesAfterLongPress
|
import androidx.compose.foundation.gestures.detectDragGesturesAfterLongPress
|
||||||
import androidx.compose.foundation.gestures.scrollBy
|
import androidx.compose.foundation.gestures.scrollBy
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
@@ -409,6 +410,7 @@ private fun QueueDialog(state: AppState, store: AppStore, onDismiss: () -> Unit)
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.height(QUEUE_ROW_HEIGHT)
|
.height(QUEUE_ROW_HEIGHT)
|
||||||
|
.background(MaterialTheme.colorScheme.surface)
|
||||||
.zIndex(if (isDragging) 1f else 0f)
|
.zIndex(if (isDragging) 1f else 0f)
|
||||||
.graphicsLayer {
|
.graphicsLayer {
|
||||||
translationY = translation
|
translationY = translation
|
||||||
|
|||||||
Reference in new issue
Block a user