Skip to content

Commit 0ce64a9

Browse files
committed
2
1 parent 61188b9 commit 0ce64a9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

composeApp/src/commonMain/kotlin/component/TextComponent.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ fun TextComponent() {
334334
items = dropdownOptions,
335335
selectedIndex = dropdownOptionSelectedRight.value,
336336
onSelectedIndexChange = { newOption -> dropdownOptionSelectedRight.value = newOption },
337-
mode = DropDownMode.AlwaysAtRight
337+
mode = DropDownMode.AlwaysOnRight
338338
)
339339

340340
SuperDropdown(
@@ -366,7 +366,7 @@ fun TextComponent() {
366366
items = spinnerOptions,
367367
selectedIndex = spinnerOptionSelectedRight.value,
368368
onSelectedIndexChange = { newOption -> spinnerOptionSelectedRight.value = newOption },
369-
mode = SpinnerMode.AlwaysAtRight,
369+
mode = SpinnerMode.AlwaysOnRight,
370370
)
371371

372372
SuperSpinnerAsDialog(

miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/extra/SuperDropdown.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ fun SuperDropdown(
275275
LazyColumn(
276276
modifier = Modifier
277277
.onGloballyPositioned { layoutCoordinates ->
278-
offsetXPx = if (mode == DropDownMode.AlwaysAtRight || !alignLeft) {
278+
offsetXPx = if (mode == DropDownMode.AlwaysOnRight || !alignLeft) {
279279
dropdownOffsetXPx + componentWidthPx - insideRightPx - layoutCoordinates.size.width - paddingPx - if (defaultWindowInsetsPadding) displayCutoutLeftSize.value else 0
280280
} else {
281281
dropdownOffsetXPx + paddingPx + insideLeftPx - if (defaultWindowInsetsPadding) displayCutoutLeftSize.value else 0
@@ -443,5 +443,5 @@ val dropdownStates = mutableStateListOf<MutableState<Boolean>>()
443443
*/
444444
enum class DropDownMode {
445445
Normal,
446-
AlwaysAtRight
446+
AlwaysOnRight
447447
}

miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/extra/SuperSpinner.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ fun SuperSpinner(
213213

214214
if (isDropdownExpanded.value) {
215215

216-
val alwaysRight = mode == SpinnerMode.AlwaysAtRight
216+
val alwaysRight = mode == SpinnerMode.AlwaysOnRight
217217

218218
if (!dropdownStates.contains(isDropdownExpanded)) dropdownStates.add(isDropdownExpanded)
219219
LaunchedEffect(isDropdownExpanded.value) {
@@ -609,5 +609,5 @@ data class SpinnerEntry(
609609
*/
610610
enum class SpinnerMode {
611611
Normal,
612-
AlwaysAtRight
612+
AlwaysOnRight
613613
}

0 commit comments

Comments
 (0)