Skip to content

Commit 358e0f1

Browse files
fix: enable swipe-back suspension on more drawer and remove unused variable (#215)
1 parent c3d6549 commit 358e0f1

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

frontend/src/components/navigation/MoreDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function MoreDrawer({ isOpen, onClose }: MoreDrawerProps) {
3030
const [commandsOpen, setCommandsOpen] = useState(false)
3131
const [mentionFileBrowserOpen, setMentionFileBrowserOpen] = useState(false)
3232
const swipeRef = useRef<HTMLDivElement>(null)
33-
const { bind } = useSwipeBack(onClose, { enabled: true, suspendsRouteSwipe: false })
33+
const { bind } = useSwipeBack(onClose, { enabled: true, suspendsRouteSwipe: true })
3434
const { logout } = useAuth()
3535
const { data: health } = useServerHealth()
3636
const isSessionDetail = /^\/repos\/\d+\/sessions\/[^/]+$/.test(location.pathname)

frontend/src/components/navigation/moreDrawerItems.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export function buildNavModel(pathname: string): NavModel {
7070

7171
const sessionDetailMatch = /^\/repos\/(\d+)\/sessions\/[^/]+$/.exec(pathname)
7272
if (sessionDetailMatch) {
73-
const id = sessionDetailMatch[1]
7473
const items: MoreDrawerItem[] = [
7574
{ key: 'files', label: 'Files', icon: Folder, dialog: 'files' },
7675
{ key: 'mcp', label: 'MCP', icon: Plug, dialog: 'mcp' },

0 commit comments

Comments
 (0)