Browse Source

Add 16.dp offset to the menu

jonny/proxy
Benoit Marty 1 year ago committed by Benoit Marty
parent
commit
348fab5962
  1. 3
      libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/DropdownMenu.kt

3
libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/DropdownMenu.kt

@ -28,7 +28,8 @@ fun DropdownMenu( @@ -28,7 +28,8 @@ fun DropdownMenu(
expanded: Boolean,
onDismissRequest: () -> Unit,
modifier: Modifier = Modifier,
offset: DpOffset = DpOffset(0.dp, 0.dp),
// By default add a 16.dp offset to the menu
offset: DpOffset = DpOffset(x = 16.dp, y = 0.dp),
properties: PopupProperties = PopupProperties(focusable = true),
content: @Composable ColumnScope.() -> Unit
) {

Loading…
Cancel
Save