mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +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.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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user