fix: Fix button jumping

This commit is contained in:
Myzel394 2023-10-21 19:09:04 +02:00
parent 6e26681acf
commit 57424cc1d3
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -1,6 +1,7 @@
package app.myzel394.alibi.ui.components.AudioRecorder.molecules
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
@ -47,7 +48,6 @@ fun MicrophoneSelection(
if (showSelection) {
ModalBottomSheet(
modifier = Modifier.fillMaxSize(),
onDismissRequest = {
showSelection = false
},
@ -96,6 +96,9 @@ fun MicrophoneSelection(
}
}
}
} else {
// We need to show a placeholder box to keep the the rest aligned correctly
Box {}
}
Button(