mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 20:31:37 -05:00
Fix file path truncation for hidden files/folders
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useEffect, useRef, useState } from "react"
|
||||
import { getContextMenuOptions } from "../utils/mention-context"
|
||||
import { removeLeadingNonAlphanumeric } from "./CodeAccordian"
|
||||
import { formatFilePathForTruncation } from "./CodeAccordian"
|
||||
|
||||
interface ContextMenuProps {
|
||||
onSelect: (type: string, value: string) => void
|
||||
@@ -79,8 +79,9 @@ const ContextMenu: React.FC<ContextMenuProps> = ({
|
||||
textOverflow: "ellipsis",
|
||||
direction: "rtl",
|
||||
textAlign: "left",
|
||||
unicodeBidi: "plaintext",
|
||||
}}>
|
||||
{removeLeadingNonAlphanumeric(option.value) + "\u200E"}
|
||||
{formatFilePathForTruncation(option.value) + "\u200E"}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user