Skip to content

Commit 0677b87

Browse files
chensshiAbySwifter
authored andcommitted
【TUILivekit】【iOS】Fixed an issue causing abnormal text display in the English language setting
1 parent 13f672b commit 0677b87

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

‎atomic_x/Sources/Widgets/BasicWidgets/AtomicSettingCell/View/CollectionViewCell.swift‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public class ButtonCollectionCell: UICollectionViewCell {
4141
view.textColor = ThemeStore.shared.colorTokens.textColorPrimary
4242
view.textAlignment = .center
4343
view.numberOfLines = 2
44+
view.lineBreakMode = .byTruncatingTail
45+
view.adjustsFontSizeToFitWidth = true
46+
view.minimumScaleFactor = 0.8
47+
view.allowsDefaultTighteningForTruncation = true
48+
view.baselineAdjustment = .alignCenters
4449
self.contentView.addSubview(view)
4550
return view
4651
}()
@@ -74,9 +79,10 @@ public class ButtonCollectionCell: UICollectionViewCell {
7479
}
7580

7681
titleLabel.snp.makeConstraints { make in
77-
make.top.equalTo(containerView.snp.bottom).offset(6.0)
82+
make.top.equalTo(containerView.snp.bottom).offset(2.0)
7883
make.centerX.equalToSuperview()
7984
make.width.equalToSuperview()
85+
make.bottom.lessThanOrEqualToSuperview()
8086
}
8187
}
8288

‎live/Resources/Localized/TUILiveKitLocalized.xcstrings‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6447,7 +6447,7 @@
64476447
"en": {
64486448
"stringUnit": {
64496449
"state": "translated",
6450-
"value": "Naughty child"
6450+
"value": "Kid"
64516451
}
64526452
},
64536453
"zh-Hans": {
@@ -6517,7 +6517,7 @@
65176517
"en": {
65186518
"stringUnit": {
65196519
"state": "translated",
6520-
"value": "Loli"
6520+
"value": "Girl"
65216521
}
65226522
},
65236523
"zh-Hans": {
@@ -6552,7 +6552,7 @@
65526552
"en": {
65536553
"stringUnit": {
65546554
"state": "translated",
6555-
"value": "Original"
6555+
"value": "Default"
65566556
}
65576557
},
65586558
"zh-Hans": {
@@ -8022,7 +8022,7 @@
80228022
"en": {
80238023
"stringUnit": {
80248024
"state": "translated",
8025-
"value": "Metallic sound"
8025+
"value": "Metallic"
80268026
}
80278027
},
80288028
"zh-Hans": {
@@ -8302,7 +8302,7 @@
83028302
"en": {
83038303
"stringUnit": {
83048304
"state": "translated",
8305-
"value": "KTV"
8305+
"value": "Karaoke"
83068306
}
83078307
},
83088308
"zh-Hans": {

‎live/Sources/Component/AudioEffect/AudioEffectView.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ extension AudioEffectView {
9393
make.trailing.equalToSuperview().inset(20)
9494
make.top.equalToSuperview().inset(20)
9595
make.height.equalTo(24.scale375())
96-
make.width.equalTo(32.scale375())
96+
make.width.greaterThanOrEqualTo(32.scale375())
9797
}
9898
titleLabel.snp.remakeConstraints { make in
9999
make.centerY.equalTo(doneButton)

0 commit comments

Comments
 (0)