mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
enhance(mobile): disable overscroll on Android and update add graph UI
This commit is contained in:
@@ -2,6 +2,7 @@ package com.logseq.app;
|
|||||||
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.view.View;
|
||||||
import android.webkit.ValueCallback;
|
import android.webkit.ValueCallback;
|
||||||
|
|
||||||
import com.getcapacitor.BridgeActivity;
|
import com.getcapacitor.BridgeActivity;
|
||||||
@@ -16,6 +17,7 @@ public class MainActivity extends BridgeActivity {
|
|||||||
registerPlugin(UILocal.class);
|
registerPlugin(UILocal.class);
|
||||||
|
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
this.bridge.getWebView().setOverScrollMode(View.OVER_SCROLL_NEVER);
|
||||||
|
|
||||||
new Timer().schedule(new TimerTask() {
|
new Timer().schedule(new TimerTask() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
{:text (some-> (:url repo) (string/replace #"^logseq_db_" ""))
|
{:text (some-> (:url repo) (string/replace #"^logseq_db_" ""))
|
||||||
:role (:url repo)})
|
:role (:url repo)})
|
||||||
(remove (fn [{:keys [text]}] (string/blank? text))))
|
(remove (fn [{:keys [text]}] (string/blank? text))))
|
||||||
[{:text [:span.text-gray-09 "+ Add new graph"]
|
[{:text [:span.text-gray-09.pb-4.active:opacity-80 "+ Add new graph"]
|
||||||
:role "add-new-graph"}])]
|
:role "add-new-graph"}])]
|
||||||
(ui-component/open-modal! "Switch graph"
|
(ui-component/open-modal! "Switch graph"
|
||||||
{:type :action-sheet
|
{:type :action-sheet
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ html.is-native-ios {
|
|||||||
--silk-tabbar-bottom-paddding: 2px;
|
--silk-tabbar-bottom-paddding: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.is-native-android {}
|
html.is-native-android {
|
||||||
|
}
|
||||||
|
|
||||||
#mobile-editor-toolbar {
|
#mobile-editor-toolbar {
|
||||||
}
|
}
|
||||||
@@ -38,6 +39,10 @@ html.has-mobile-keyboard {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
overscroll-behavior: none;
|
||||||
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@apply h-full overflow-hidden;
|
@apply h-full overflow-hidden;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user