mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont show menu when in auto highlight mode, better spacing for youtube sticky player
This commit is contained in:
parent
a21cb85e65
commit
49dde3f102
2 changed files with 12 additions and 0 deletions
|
|
@ -60,6 +60,10 @@ struct WebReaderContent {
|
|||
body {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
.is-sticky {
|
||||
right: 15px !important;
|
||||
bottom: 40px !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -377,6 +377,14 @@ public final class OmnivoreWebView: WKWebView {
|
|||
|
||||
let items: [UIMenuElement]
|
||||
if currentMenu == .defaultMenu {
|
||||
let autoHighlightEnabled = UserDefaults.standard.value(forKey: UserDefaultKey.enableHighlightOnRelease.rawValue)
|
||||
if let autoHighlightEnabled = autoHighlightEnabled as? Bool, autoHighlightEnabled {
|
||||
builder.remove(menu: .standardEdit)
|
||||
builder.remove(menu: .lookup)
|
||||
builder.remove(menu: .find)
|
||||
super.buildMenu(with: builder)
|
||||
return
|
||||
}
|
||||
let highlight = UICommand(title: LocalText.genericHighlight, action: #selector(highlightSelection))
|
||||
items = [highlight, annotate]
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue