@momo-kits/native-kits 0.157.1-beta.3-debug → 0.157.1-beta.4-debug
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/compose/build.gradle.kts
CHANGED
package/compose/compose.podspec
CHANGED
|
@@ -525,6 +525,12 @@ private fun TooltipSingleButton(btn: TooltipButton) {
|
|
|
525
525
|
)
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
+
|
|
529
|
+
private const val MAX_BUTTON_LENGTH = 16
|
|
530
|
+
|
|
531
|
+
private fun String.limitWithEllipsis(max: Int = 16): String {
|
|
532
|
+
return if (length > max) take(max) + "…" else this
|
|
533
|
+
}
|
|
528
534
|
@Composable
|
|
529
535
|
private fun TooltipPrimaryButton(
|
|
530
536
|
title: String,
|
|
@@ -532,7 +538,7 @@ private fun TooltipPrimaryButton(
|
|
|
532
538
|
) {
|
|
533
539
|
Button(
|
|
534
540
|
onClick = onPress,
|
|
535
|
-
title = title,
|
|
541
|
+
title = title.limitWithEllipsis(),
|
|
536
542
|
type = ButtonType.SECONDARY,
|
|
537
543
|
size = Size.MEDIUM,
|
|
538
544
|
isFull = false,
|
|
@@ -552,7 +558,7 @@ private fun TooltipSecondaryButton(
|
|
|
552
558
|
.padding(horizontal = Spacing.M, vertical = Spacing.S),
|
|
553
559
|
) {
|
|
554
560
|
Text(
|
|
555
|
-
text = title,
|
|
561
|
+
text = title.limitWithEllipsis(),
|
|
556
562
|
color = Colors.black_01,
|
|
557
563
|
style = Typography.actionSBold,
|
|
558
564
|
maxLines = 1,
|
package/gradle.properties
CHANGED
package/package.json
CHANGED
package/local.properties
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
-
# as it contains information specific to your local configuration.
|
|
3
|
-
#
|
|
4
|
-
# Location of the SDK. This is only used by Gradle.
|
|
5
|
-
# For customization when using a Version Control System, please read the
|
|
6
|
-
# header note.
|
|
7
|
-
#Mon Dec 22 10:07:29 ICT 2025
|
|
8
|
-
sdk.dir=/Users/phuc/Library/Android/sdk
|