enhance(mobile): add create new graph link to graph switcher

This commit is contained in:
Tienson Qin
2025-12-16 16:35:45 +08:00
parent 6eea79313d
commit 1caefaef61
2 changed files with 10 additions and 1 deletions

View File

@@ -112,6 +112,10 @@ html.is-zoomed-native-ios {
}
}
.ui__dialog-content {
margin-top: 45px;
}
html.has-mobile-keyboard {
.ui__dialog-overlay {
&:has(.app-login-modal) {

View File

@@ -104,7 +104,12 @@
(ui-component/open-popup!
(fn []
[:div.px-1
(repo/repos-dropdown-content {:footer? false})])
(repo/repos-dropdown-content {:footer? false})
(ui/menu-link
{:on-click #(p/do!
(shui/popup-hide!)
(state/pub-event! [:graph/new-db-graph]))}
"Create new graph")])
{:default-height false}))
(defn- register-native-top-bar-events! []