Skip to content

Commit

Permalink
Rollback the padding
Browse files Browse the repository at this point in the history
  • Loading branch information
devkanro committed Oct 13, 2023
1 parent 8453ece commit 18b2eaf
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions core/src/main/kotlin/org/jetbrains/jewel/Dropdown.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import androidx.compose.ui.input.InputModeManager
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.LocalFocusManager
import androidx.compose.ui.platform.LocalInputModeManager
import androidx.compose.ui.platform.LocalLayoutDirection
import androidx.compose.ui.res.ResourceLoader
import androidx.compose.ui.semantics.Role
import androidx.compose.ui.window.Popup
Expand Down Expand Up @@ -129,17 +128,14 @@ fun Dropdown(
modifier = Modifier
.fillMaxWidth()
.padding(style.metrics.contentPadding)
.padding(
end = minSize.height - style.metrics.contentPadding.calculateRightPadding(
LocalLayoutDirection.current,
),
),
.padding(end = minSize.height),
contentAlignment = Alignment.CenterStart,
content = content,
)

Box(
modifier = Modifier.size(arrowMinSize).align(Alignment.CenterEnd),
modifier = Modifier.size(arrowMinSize)
.align(Alignment.CenterEnd),
contentAlignment = Alignment.Center,
) {
val chevronIcon by style.icons.chevronDown.getPainter(resourceLoader, dropdownState)
Expand Down

0 comments on commit 18b2eaf

Please sign in to comment.