Skip to content

Commit

Permalink
fix: Fix button jumping
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed Oct 21, 2023
1 parent 6e26681 commit 57424cc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -47,7 +48,6 @@ fun MicrophoneSelection(

if (showSelection) {
ModalBottomSheet(
modifier = Modifier.fillMaxSize(),
onDismissRequest = {
showSelection = false
},
Expand Down Expand Up @@ -96,6 +96,9 @@ fun MicrophoneSelection(
}
}
}
} else {
// We need to show a placeholder box to keep the the rest aligned correctly
Box {}
}

Button(
Expand Down

0 comments on commit 57424cc

Please sign in to comment.