You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 99a22d8
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(chat): one folder-path label for the mention menu and cmd-K
The mention menu's folder location and the cmd-K row's folder receipt were two
copies of the same flex-shrink layout. Both now render `FolderPathLabel`, which
collapses ancestors past the third into a single `…` segment so a deep path
drops whole folders instead of clipping one mid-word.
Mention rows also cap the name at 65% and fix the popover at 380px, so the
location column keeps a stable right edge and can never be squeezed out by a
long resource name.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/plus-menu-dropdown/plus-menu-dropdown.tsx
+21-36Lines changed: 21 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ import {
8
8
DropdownMenuSearchInput,
9
9
DropdownMenuTrigger,
10
10
}from'@sim/emcn'
11
+
import{FolderPathLabel}from'@/components/ui'
11
12
import{
12
13
ResourceMenuSections,
13
14
useAvailableResources,
@@ -42,35 +43,6 @@ const NON_ATTACHABLE_RESOURCE_TYPES = new Set<MothershipResourceType>(['browser'
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/components/command-items/command-items.tsx
+4-24Lines changed: 4 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ import type { ComponentType } from 'react'
0 commit comments