AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
fix: keep mobile bottom navigation visible in settings
tianma-ifa80186396576
diff --git a/apps/ios/EdgeEver/Features/Workspace/SettingsView.swift b/apps/ios/EdgeEver/Features/Workspace/SettingsView.swiftindex c0e19d3a..213c9b48 100644--- a/apps/ios/EdgeEver/Features/Workspace/SettingsView.swift+++ b/apps/ios/EdgeEver/Features/Workspace/SettingsView.swift@@ -1,10 +1,10 @@import SwiftUI-/// Android `WorkspaceSettingsView` parity: full-screen “我的”, not a system Form/List.+/// Android `WorkspaceSettingsView` parity: full-height “我的” content above the shared bottom navigation.struct SettingsView: View {@Environment(AppEnvironment.self) private var env- @Environment(\.dismiss) private var dismiss@Environment(\.colorScheme) private var colorScheme+ let onClose: () -> Voidprivate enum RootTab: Hashable {case general@@ -86,7 +86,7 @@ struct SettingsView: View {if tab != nil {withAnimation(Motion.chip) { tab = nil }} else {- dismiss()+ onClose()}} label: {Image(systemName: "chevron.left")@@ -408,7 +408,7 @@ struct SettingsView: View {Button {Task {await env.session.signOut()- dismiss()+ onClose()}} label: {HStack(spacing: 8) {diff --git a/apps/ios/EdgeEver/Features/Workspace/WorkspaceView.swift b/apps/ios/EdgeEver/Features/Workspace/WorkspaceView.swiftindex b134272f..8ae653a3 100644--- a/apps/ios/EdgeEver/Features/Workspace/WorkspaceView.swift+++ b/apps/ios/EdgeEver/Features/Workspace/WorkspaceView.swift@@ -48,15 +48,19 @@ struct WorkspaceView: View {// List pads the solid white chrome height; create button lives inside the tab bar under the separator.ZStack(alignment: .bottom) {VStack(spacing: 0) {- syncBanner- listHeader- NotesListView(- store: store,- path: $path,- onCreateNote: { openCreateNote() },- onCreateFromTemplate: { openCreateFromTemplate() }- )+ if showSettings {+ SettingsView(onClose: { showSettings = false })+ } else {+ syncBanner+ listHeader+ NotesListView(+ store: store,+ path: $path,+ onCreateNote: { openCreateNote() },+ onCreateFromTemplate: { openCreateFromTemplate() }+ ).frame(maxWidth: .infinity, maxHeight: .infinity)+ }}.background(AppTheme.background).padding(.bottom, showsBottomChrome ? bottomChromeHeight : 0)@@ -84,10 +88,6 @@ struct WorkspaceView: View {}}}- // Android Me is full-screen (activeView === "settings"), not a half-sheet Form.- .fullScreenCover(isPresented: $showSettings) {- SettingsView()- }// Android CreateMemoModal is fullScreen — not a half sheet / Form..fullScreenCover(isPresented: $showNewNote) {MemoEditView(@@ -542,8 +542,9 @@ struct WorkspaceView: View {bottomNavItem(systemImage: "house.fill",label: env.preferences.t("首页", en: "Home"),- active: true+ active: !showSettings) {+ showSettings = falsewithAnimation(Motion.chip) {path = NavigationPath()}@@ -594,7 +595,7 @@ struct WorkspaceView: View {bottomNavItem(systemImage: "person",label: env.preferences.t("我的", en: "Me"),- active: false+ active: showSettings) {showSettings = true}@@ -621,13 +622,20 @@ struct WorkspaceView: View {Button(action: action) {VStack(spacing: 4) {Image(systemName: systemImage)- .font(.system(size: 20, weight: .regular))- .foregroundStyle(active ? AppTheme.title : AppTheme.secondary)+ .font(.system(size: 20, weight: active ? .semibold : .regular))+ .foregroundStyle(active ? AppTheme.accentAction : AppTheme.secondary)Text(label).font(AppTheme.bottomNavFont).foregroundStyle(active ? AppTheme.title : AppTheme.secondary)}- .frame(minWidth: 58, minHeight: MobileUIMetrics.minimumTouchTarget)+ .frame(width: 80, height: 48)+ .overlay(alignment: .top) {+ if active {+ Capsule()+ .fill(AppTheme.accentAction)+ .frame(width: 20, height: 3)+ }+ }}.buttonStyle(.plain).frame(maxWidth: .infinity)diff --git a/apps/ios/Tests/EdgeEverTests/ChromeParityTests.swift b/apps/ios/Tests/EdgeEverTests/ChromeParityTests.swiftindex 5b55e9a6..fb7b6bde 100644--- a/apps/ios/Tests/EdgeEverTests/ChromeParityTests.swift+++ b/apps/ios/Tests/EdgeEverTests/ChromeParityTests.swift@@ -207,7 +207,8 @@ final class ChromeParityTests: XCTestCase {src.contains("mode: .create(") || src.contains("MemoEditView(mode: .create"),"create wiring")- XCTAssertTrue(src.contains("fullScreenCover(isPresented: $showSettings)"), "Me full screen")+ XCTAssertTrue(src.contains("SettingsView(onClose: { showSettings = false })"), "Me uses workspace chrome")+ XCTAssertTrue(src.contains("active: showSettings"), "Me selects the persistent bottom tab")}/// Bottom chrome must be one bar: nav height + home-indicator padding (Android parity).diff --git a/apps/mobile/src/screens/WorkspaceScreen.tsx b/apps/mobile/src/screens/WorkspaceScreen.tsxindex dbf1c346..733e9fc5 100644--- a/apps/mobile/src/screens/WorkspaceScreen.tsx+++ b/apps/mobile/src/screens/WorkspaceScreen.tsx@@ -1452,13 +1452,13 @@ export const WorkspaceScreen = ({/>) : null}- {activeView !== "settings" && !selectionMode ? (+ {!selectionMode ? (<Viewstyle={[styles.bottomNav, { height: MOBILE_UI_METRICS.bottomNavigationHeight + safeAreaInsets.bottom, paddingBottom: safeAreaInsets.bottom }]}><BottomNavItemactive={activeView === "notes"}- icon={<Home color={activeView === "notes" ? "#0f172a" : "#64748b"} size={20} />}+ icon={<Home color={activeView === "notes" ? styles.bottomNavIconActive.color : styles.bottomNavText.color} size={20} />}label="首页"onPress={showAllNotes}/>@@ -1479,9 +1479,9 @@ export const WorkspaceScreen = ({<Plus color={canCreateMemo ? "#ffffff" : "#e2e8f0"} size={28} /></Pressable><BottomNavItem- active={false}+ active={activeView === "settings"}badge={hasUpdate}- icon={<UserRound color="#64748b" size={20} />}+ icon={<UserRound color={activeView === "settings" ? styles.bottomNavIconActive.color : styles.bottomNavText.color} size={20} />}label="我的"onPress={openSettings}/>@@ -1499,6 +1499,7 @@ const BottomNavItem = ({ active = false, badge = false, icon, label, onPress }:onPress={onPress}style={styles.bottomNavItem}>+ {active ? <View accessibilityElementsHidden importantForAccessibility="no-hide-descendants" style={styles.bottomNavActiveIndicator} /> : null}<View style={styles.bottomNavIcon}>{icon}{badge ? <View accessibilityElementsHidden importantForAccessibility="no-hide-descendants" style={styles.bottomNavBadge} /> : null}diff --git a/apps/mobile/src/screens/workspace-styles.ts b/apps/mobile/src/screens/workspace-styles.tsindex 33d10c92..86a5432d 100644--- a/apps/mobile/src/screens/workspace-styles.ts+++ b/apps/mobile/src/screens/workspace-styles.ts@@ -2263,12 +2263,24 @@ const baseWorkspaceStyles = StyleSheet.create({bottomNavItem: {alignItems: "center",gap: 4,- minHeight: MOBILE_UI_METRICS.minimumTouchTarget,- minWidth: 58,+ justifyContent: "center",+ minHeight: 48,+ minWidth: 80,+ },+ bottomNavActiveIndicator: {+ backgroundColor: "#10b981",+ borderRadius: 2,+ height: 3,+ position: "absolute",+ top: 0,+ width: 20,},bottomNavIcon: {position: "relative",},+ bottomNavIconActive: {+ color: "#10b981",+ },bottomNavBadge: {backgroundColor: "#10b981",borderColor: "#ffffff",@@ -2287,6 +2299,7 @@ const baseWorkspaceStyles = StyleSheet.create({},bottomNavTextActive: {color: "#0f172a",+ fontWeight: "800",},previewBackdrop: {alignItems: "center",diff --git a/apps/web/src/components/WorkspaceApp.tsx b/apps/web/src/components/WorkspaceApp.tsxindex 23683073..e48035ae 100644--- a/apps/web/src/components/WorkspaceApp.tsx+++ b/apps/web/src/components/WorkspaceApp.tsx@@ -3017,6 +3017,8 @@ export const WorkspaceApp = ({: isStandaloneRuntime? t("workspace.pullToRefresh.pullNotes"): t("workspace.pullToRefresh.pullPage");+ const showMobileSettingsNav = visibleActivePane === "editor" && rightView === "settings";+return (<WorkspaceMotionProvider><div className="edgeever-workspace-shell flex h-[100dvh] overflow-hidden text-slate-950">@@ -3275,7 +3277,7 @@ export const WorkspaceApp = ({/></section>- <section className={cn("edgeever-workspace-editor min-h-0 min-w-0 lg:block", visibleActivePane === "editor" ? "block" : "hidden")}>+ <section className={cn("edgeever-workspace-editor min-h-0 min-w-0 lg:block", visibleActivePane === "editor" ? "block" : "hidden", showMobileSettingsNav && "pb-[calc(4rem+env(safe-area-inset-bottom))] lg:pb-0")}>{shouldRenderRightPane && (<Suspense fallback={<PaneLoadingFallback label={rightPaneLoadingLabel} />}><m.div key={rightView} className="h-full min-h-0 min-w-0" {...paneEnterMotion}>@@ -3626,7 +3628,7 @@ export const WorkspaceApp = ({options={requestedPluginPanel?.options}onClose={() => setRequestedPluginPanel(null)}/>- {visibleActivePane !== "editor" && !memoSelectionModeActive && (+ {(visibleActivePane !== "editor" || showMobileSettingsNav) && !memoSelectionModeActive && (<MobileBottomNavactiveItem={mobileBottomNavActive}canCreateMemo={canCreateMemo && memoView !== "trash"}diff --git a/apps/web/src/components/WorkspaceMobileChrome.tsx b/apps/web/src/components/WorkspaceMobileChrome.tsxindex 329e7e30..ec62f841 100644--- a/apps/web/src/components/WorkspaceMobileChrome.tsx+++ b/apps/web/src/components/WorkspaceMobileChrome.tsx@@ -34,14 +34,17 @@ const MobileBottomNavButton = ({}) => (<buttonclassName={cn(- "flex h-mobile-touch flex-col items-center justify-center gap-0.5 rounded-md text-xs font-medium transition-all duration-200",- active ? "text-slate-950" : "text-slate-500 hover:bg-slate-100 hover:text-slate-950"+ "relative mx-auto flex h-12 w-20 flex-col items-center justify-center gap-0.5 rounded-md text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--brand-green)]",+ active+ ? "font-bold text-slate-950 [&_svg]:text-emerald-700"+ : "text-slate-500 hover:bg-slate-100 hover:text-slate-950")}type="button"aria-current={active ? "page" : undefined}aria-label={label}onClick={onClick}>+ {active ? <span aria-hidden="true" className="absolute top-0 h-0.5 w-5 rounded-full bg-emerald-700" /> : null}{icon}<span>{label}</span></button>