History menu improvements
This commit is contained in:
@@ -34,7 +34,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
private func historyMenu() -> UIMenu {
|
||||
let historyItems = BrowserHistory.shared.allHistory(limit: 50).map { item in
|
||||
let title = (item.title.count > 0) ? item.title : item.url.absoluteString
|
||||
let title = ((item.title.count > 0) ? item.title : item.url.absoluteString)
|
||||
.middleTruncatedString(maximumLength: 85)
|
||||
|
||||
return UIAction(title: title) { action in
|
||||
UIApplication.shared.sendAction(#selector(ShortcutResponder.handleOpenURL), to: nil, from: action, for: OpenURLEvent(url: item.url))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user