fix(app): shorten paths in project picker and close sidebar on workspace press

This commit is contained in:
Mohamed Boudra
2026-03-15 20:16:41 +07:00
parent 8ff51eb176
commit ed5bc3091e
2 changed files with 4 additions and 2 deletions
@@ -13,6 +13,7 @@ import { StyleSheet, useUnistyles } from "react-native-unistyles";
import { useQuery } from "@tanstack/react-query";
import { router, usePathname } from "expo-router";
import { useKeyboardShortcutsStore } from "@/stores/keyboard-shortcuts-store";
import { shortenPath } from "@/utils/shorten-path";
import {
normalizeWorkspaceDescriptor,
useSessionStore,
@@ -294,7 +295,7 @@ export function ProjectPickerModal() {
]}
numberOfLines={1}
>
{path}
{shortenPath(path)}
</Text>
</View>
</Pressable>