Compare commits
4 Commits
c934dbad84
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a525c763e | |||
| a0dffdc715 | |||
| 4765d48021 | |||
| f888e28d15 |
@@ -184,6 +184,7 @@
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
"zh-Hans",
|
||||
);
|
||||
mainGroup = CFD40B073003C283009C9F2A;
|
||||
minimizedProjectReferenceProxies = 1;
|
||||
|
||||
@@ -246,8 +246,10 @@ extension ClipInboxViewController: UITableViewDataSource {
|
||||
|
||||
var config = cell.defaultContentConfiguration()
|
||||
config.text = previewText(for: clip.text)
|
||||
config.textProperties.numberOfLines = 0
|
||||
config.secondaryText = formattedDate(clip.createdAt)
|
||||
config.secondaryTextProperties.color = .secondaryLabel
|
||||
config.textToSecondaryTextVerticalPadding = 12
|
||||
cell.contentConfiguration = config
|
||||
cell.accessoryType = .disclosureIndicator
|
||||
|
||||
@@ -255,9 +257,7 @@ extension ClipInboxViewController: UITableViewDataSource {
|
||||
}
|
||||
|
||||
private func previewText(for text: String) -> String {
|
||||
let lines = text.components(separatedBy: .newlines)
|
||||
let firstTwoLines = Array(lines.prefix(2))
|
||||
let preview = firstTwoLines.joined(separator: " ").trimmingCharacters(in: .whitespaces)
|
||||
let preview = text.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
if preview.isEmpty {
|
||||
return "(无内容)"
|
||||
}
|
||||
|
||||
@@ -35,10 +35,6 @@ class FormatNoteViewController: UIViewController {
|
||||
setupUI()
|
||||
if let initialText = initialText {
|
||||
textView.text = initialText
|
||||
isNoteFormatted = true
|
||||
noteButton.setTitle("复制并打开备忘录", for: .normal)
|
||||
rightBarButtonMode = .reset
|
||||
updateRightBarButtonItem()
|
||||
}
|
||||
setupKeyboardObservers()
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
/* Simplified Chinese localization */
|
||||
Reference in New Issue
Block a user