enhance(mobile): disable overscroll on Android and update add graph UI

This commit is contained in:
charlie
2025-07-31 14:09:04 +08:00
parent 83a593ad5e
commit 83acf28f49
3 changed files with 9 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package com.logseq.app;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.webkit.ValueCallback;
import com.getcapacitor.BridgeActivity;
@@ -16,6 +17,7 @@ public class MainActivity extends BridgeActivity {
registerPlugin(UILocal.class);
super.onCreate(savedInstanceState);
this.bridge.getWebView().setOverScrollMode(View.OVER_SCROLL_NEVER);
new Timer().schedule(new TimerTask() {
@Override

View File

@@ -63,7 +63,7 @@
{:text (some-> (:url repo) (string/replace #"^logseq_db_" ""))
:role (:url repo)})
(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"}])]
(ui-component/open-modal! "Switch graph"
{:type :action-sheet

View File

@@ -13,7 +13,8 @@ html.is-native-ios {
--silk-tabbar-bottom-paddding: 2px;
}
html.is-native-android {}
html.is-native-android {
}
#mobile-editor-toolbar {
}
@@ -38,6 +39,10 @@ html.has-mobile-keyboard {
}
}
html, body {
overscroll-behavior: none;
}
html {
@apply h-full overflow-hidden;