We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 972cb01 commit 07015aaCopy full SHA for 07015aa
1 file changed
packages/app/src/components/prompt-input.tsx
@@ -1394,7 +1394,10 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
1394
/>
1395
<div class="flex items-center text-14-regular min-w-0">
1396
<span class="text-text-weak whitespace-nowrap truncate min-w-0">
1397
- {getDirectory((item as { type: "file"; path: string }).path)}
+ {(() => {
1398
+ const path = (item as { type: "file"; path: string }).path
1399
+ return path.endsWith("/") ? path : getDirectory(path)
1400
+ })()}
1401
</span>
1402
<Show when={!(item as { type: "file"; path: string }).path.endsWith("/")}>
1403
<span class="text-text-strong whitespace-nowrap">
0 commit comments