Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit c857cff

Browse files
committed
fix(desktop): double listing dir
1 parent fd9d2db commit c857cff

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/desktop/src/components/prompt-input.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,9 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
366366
<span class="text-text-weak whitespace-nowrap overflow-hidden overflow-ellipsis truncate min-w-0">
367367
{getDirectory(i)}
368368
</span>
369-
<span class="text-text-strong whitespace-nowrap">{getFilename(i)}</span>
369+
<Show when={!i.endsWith("/")}>
370+
<span class="text-text-strong whitespace-nowrap">{getFilename(i)}</span>
371+
</Show>
370372
</div>
371373
</div>
372374
<div class="flex items-center gap-x-1 text-text-muted/40 shrink-0"></div>

0 commit comments

Comments
 (0)