@@ -56,6 +56,7 @@ import androidx.compose.ui.platform.LocalDensity
5656import androidx.compose.ui.platform.LocalHapticFeedback
5757import androidx.compose.ui.text.font.FontWeight
5858import androidx.compose.ui.text.style.TextAlign
59+ import androidx.compose.ui.text.style.TextOverflow
5960import androidx.compose.ui.unit.Dp
6061import androidx.compose.ui.unit.DpSize
6162import androidx.compose.ui.unit.IntOffset
@@ -185,6 +186,8 @@ fun SuperSpinner(
185186 fontSize = MiuixTheme .textStyles.body2.fontSize,
186187 color = actionColor,
187188 textAlign = TextAlign .End ,
189+ overflow = TextOverflow .Ellipsis ,
190+ maxLines = 2
188191 )
189192 }
190193 Image (
@@ -353,10 +356,8 @@ fun SuperSpinner(
353356 * @param titleColor the color of the title of the [SuperSpinner].
354357 * @param summary the summary of the [SuperSpinner].
355358 * @param summaryColor the color of the summary of the [SuperSpinner].
356- * @param horizontalPadding the horizontal padding of the [SuperSpinner].
357359 * @param leftAction the action to be shown at the left side of the [SuperSpinner].
358360 * @param insideMargin the [PaddingValues] to be applied inside the [SuperSpinner].
359- * @param defaultWindowInsetsPadding whether to apply the default window insets padding to the [SuperSpinner].
360361 * @param enabled whether the [SuperSpinner] is enabled.
361362 * @param showValue whether to show the value of the [SuperSpinner].
362363 * @param onSelectedIndexChange the callback to be invoked when the selected index of the [SuperSpinner] is changed.
@@ -372,10 +373,8 @@ fun SuperSpinner(
372373 titleColor : BasicComponentColors = BasicComponentDefaults .titleColor(),
373374 summary : String? = null,
374375 summaryColor : BasicComponentColors = BasicComponentDefaults .summaryColor(),
375- horizontalPadding : Dp = 0.dp,
376376 leftAction : @Composable (() -> Unit )? = null,
377377 insideMargin : PaddingValues = BasicComponentDefaults .InsideMargin ,
378- defaultWindowInsetsPadding : Boolean = true,
379378 enabled : Boolean = true,
380379 showValue : Boolean = true,
381380 onSelectedIndexChange : ((Int ) -> Unit )? ,
@@ -444,6 +443,8 @@ fun SuperSpinner(
444443 fontSize = MiuixTheme .textStyles.body2.fontSize,
445444 color = actionColor,
446445 textAlign = TextAlign .End ,
446+ overflow = TextOverflow .Ellipsis ,
447+ maxLines = 2
447448 )
448449 }
449450 Image (
0 commit comments