@momo-kits/native-kits 0.117.1-beta.17 → 0.117.1-beta.18
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.
|
@@ -126,7 +126,7 @@ fun PopupNotify(
|
|
|
126
126
|
content(Modifier.padding(top = Spacing.S))
|
|
127
127
|
if (error.isNotEmpty()) {
|
|
128
128
|
Text(
|
|
129
|
-
text =
|
|
129
|
+
text = error,
|
|
130
130
|
style = Typography.descriptionXsRegular,
|
|
131
131
|
color = AppTheme.current.colors.text.hint,
|
|
132
132
|
maxLines = 1,
|
package/ios/Button/Button.swift
CHANGED
|
@@ -42,7 +42,7 @@ public struct Button: View {
|
|
|
42
42
|
SwiftUI.Button(action: action) {
|
|
43
43
|
HStack {
|
|
44
44
|
iconLeft
|
|
45
|
-
renderTitle(title: title, type: type, size: size)
|
|
45
|
+
renderTitle(title: title, type: type, size: size).lineLimit(1).truncationMode(.tail)
|
|
46
46
|
iconRight
|
|
47
47
|
}
|
|
48
48
|
.buttonSize(size)
|
|
@@ -123,15 +123,15 @@ private extension View {
|
|
|
123
123
|
case .large:
|
|
124
124
|
return self
|
|
125
125
|
.frame(maxWidth: .infinity, minHeight: 48, maxHeight: 48)
|
|
126
|
-
.padding([.leading, .trailing], Spacing.
|
|
126
|
+
.padding([.leading, .trailing], Spacing.L)
|
|
127
127
|
case .medium:
|
|
128
128
|
return self
|
|
129
129
|
.frame(minWidth: 80, maxWidth: .infinity, minHeight: 36, maxHeight: 36)
|
|
130
|
-
.padding([.leading, .trailing], Spacing.
|
|
130
|
+
.padding([.leading, .trailing], Spacing.M)
|
|
131
131
|
case .small:
|
|
132
132
|
return self
|
|
133
133
|
.frame(minWidth: 56, maxWidth: 76, minHeight: 28, maxHeight: 28)
|
|
134
|
-
.padding([.leading, .trailing], Spacing.
|
|
134
|
+
.padding([.leading, .trailing], Spacing.S)
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
}
|