Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix isMobile function call

Smaug6739af1533098081
diff --git a/backend/main.go b/backend/main.go
index 45300cd1..6a2f1cac 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -25,5 +25,5 @@ func main() {
logger.Info("Starting server on port: " + port)
defer application.DB.Close()
- server.Run(":" + port)
+ server.Run("192.168.31.106:" + port)
}
diff --git a/frontend/.env b/frontend/.env
index 4466d368..4e75465e 100644
--- a/frontend/.env
+++ b/frontend/.env
@@ -1,2 +1,2 @@
-NUXT_PUBLIC_BASE_API=http://localhost:8201
+NUXT_PUBLIC_BASE_API=http://192.168.31.106:8201
NUXT_PUBLIC_BASE_CDN=http://localhost:9000/alexandrie
\ No newline at end of file
diff --git a/frontend/app/components/AppSelect.vue b/frontend/app/components/AppSelect.vue
index 4bf1a6c7..cb8b59c6 100644
--- a/frontend/app/components/AppSelect.vue
+++ b/frontend/app/components/AppSelect.vue
@@ -2,7 +2,7 @@
<div ref="trigger" class="app-select" :style="{ width: size || '100%' }">
<!-- Desktop: inline search input -->
<input
- v-if="open && searchable && !isMobile"
+ v-if="open && searchable && !isMobile()"
ref="searchInput"
v-model="search"
type="text"
@@ -20,7 +20,7 @@
<!-- Desktop dropdown -->
<Teleport to="body">
- <ul v-if="open && !isMobile" ref="portalList" class="dropdown" :style="dropdownStyle">
+ <ul v-if="open && !isMobile()" ref="portalList" class="dropdown" :style="dropdownStyle">
<AppSelectNode v-if="nullable" :node="{ id: '', label: 'β€” Remove selection β€”' }" :level="0" @select="clearSelection" />
<AppSelectNode v-for="item in filteredItems" :key="item.id" :node="item" :level="0" :disabled="disabled" @select="handleSelect" />
<slot name="list-footer"></slot>