Parcourir la source

fix(desktop): double listing dir

Adam il y a 3 mois
Parent
commit
c857cff585
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      packages/desktop/src/components/prompt-input.tsx

+ 3 - 1
packages/desktop/src/components/prompt-input.tsx

@@ -366,7 +366,9 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
                       <span class="text-text-weak whitespace-nowrap overflow-hidden overflow-ellipsis truncate min-w-0">
                         {getDirectory(i)}
                       </span>
-                      <span class="text-text-strong whitespace-nowrap">{getFilename(i)}</span>
+                      <Show when={!i.endsWith("/")}>
+                        <span class="text-text-strong whitespace-nowrap">{getFilename(i)}</span>
+                      </Show>
                     </div>
                   </div>
                   <div class="flex items-center gap-x-1 text-text-muted/40 shrink-0"></div>