fix: don't show file graphs on mobile

This commit is contained in:
Tienson Qin
2025-07-09 09:30:23 +08:00
parent 5bd4b09258
commit f2ea19bbdf

View File

@@ -159,7 +159,11 @@
remotes-loading? (state/sub [:file-sync/remote-graphs :loading])
repos (if (and login? (seq remotes))
(repo-handler/combine-local-&-remote-graphs repos remotes) repos)
repos (remove #(= (:url %) config/demo-repo) repos)
repos (cond->>
(remove #(= (:url %) config/demo-repo) repos)
(util/mobile?)
(keep (fn [item]
(config/db-based-graph? (:url item)))))
{remote-graphs true local-graphs false} (group-by (comp boolean :remote?) repos)]
[:div#graphs
(when-not (util/capacitor-new?)