A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
feat(mobile): tablet/iPad UI polish for toolbar and FAB (#2788)
Evan Simkowitzd871f57b117c
diff --git a/apps/mobile/components/bookmarks/BottomActions.tsx b/apps/mobile/components/bookmarks/BottomActions.tsxindex d953247c..9534ed4c 100644--- a/apps/mobile/components/bookmarks/BottomActions.tsx+++ b/apps/mobile/components/bookmarks/BottomActions.tsx@@ -32,6 +32,8 @@ import {import { useWhoAmI } from "@karakeep/shared-react/hooks/users";import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks";+const TOOLBAR_ICON_GAP = 28;+function triggerHaptic() {Haptics.selectionAsync().catch(() => {// Ignore — haptics unavailable (e.g. simulator)@@ -296,6 +298,19 @@ function ToolbarContainer({bottomMargin: number;bottomInset: number;}) {+ const innerRow = (+ <View+ style={{+ alignSelf: "center",+ flexDirection: "row",+ alignItems: "center",+ gap: TOOLBAR_ICON_GAP,+ }}+ >+ {children}+ </View>+ );+if (shouldUseGlassPill) {return (<GlassView@@ -303,23 +318,18 @@ function ToolbarContainer({style={{borderRadius: 22,marginHorizontal: 16,+ alignSelf: "center",marginBottom: bottomMargin,paddingVertical: 10,paddingHorizontal: 20,- flexDirection: "row",- alignItems: "center",- justifyContent: "space-between",}}>- {children}+ {innerRow}</GlassView>);}const fallbackStyle = {- flexDirection: "row" as const,- alignItems: "center" as const,- justifyContent: "space-between" as const,paddingHorizontal: 40,paddingTop: 16,paddingBottom: bottomInset + 16,@@ -328,14 +338,14 @@ function ToolbarContainer({if (Platform.OS === "ios") {return (<BlurView tint="systemMaterial" intensity={80} style={fallbackStyle}>- {children}+ {innerRow}</BlurView>);}return (<View className="bg-background" style={fallbackStyle}>- {children}+ {innerRow}</View>);}diff --git a/apps/mobile/components/ui/FAB/FAB.ios.tsx b/apps/mobile/components/ui/FAB/FAB.ios.tsxindex a087422d..61d134ce 100644--- a/apps/mobile/components/ui/FAB/FAB.ios.tsx+++ b/apps/mobile/components/ui/FAB/FAB.ios.tsx@@ -3,7 +3,7 @@ import { StyleSheet, View } from "react-native";import { useSafeAreaInsets } from "react-native-safe-area-context";import { BlurView } from "expo-blur";import { GlassView, isGlassEffectAPIAvailable } from "expo-glass-effect";-import { isIOS26 } from "@/lib/ios";+import { isIOS26, isIPad } from "@/lib/ios";const shouldUseGlass = isIOS26 && isGlassEffectAPIAvailable();const SIZE = 62;@@ -16,7 +16,7 @@ export function FAB({ children }: { children: ReactNode }) {style={[styles.container,{- bottom: insets.bottom + (isIOS26 ? 57 : 60),+ bottom: insets.bottom + (isIPad ? 0 : isIOS26 ? 57 : 60),right: isIOS26 ? 21 : 16,},]}diff --git a/apps/mobile/lib/ios.ts b/apps/mobile/lib/ios.tsindex 2b390713..5f2b1002 100644--- a/apps/mobile/lib/ios.ts+++ b/apps/mobile/lib/ios.ts@@ -4,4 +4,6 @@ import { isGlassEffectAPIAvailable } from "expo-glass-effect";export const isIOS26 =Platform.OS === "ios" && parseInt(Platform.Version as string, 10) >= 26;+export const isIPad = Platform.OS === "ios" && Platform.isPad;+export const shouldUseGlassPill = isIOS26 && isGlassEffectAPIAvailable();