fix(app): truncate filename from start to show end of path

This commit is contained in:
David Hill
2026-01-23 21:18:20 +00:00
parent 1df697dec7
commit 18ea09868a

View File

@@ -1697,9 +1697,11 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
class="flex-1 flex items-center text-11-regular min-w-0"
style={{ "font-weight": "var(--font-weight-medium)" }}
>
<span class="truncate min-w-0">
<span class="text-text-weak">{getDirectory(item.path)}</span>
<span class="text-text-strong">{getFilename(item.path)}</span>
<span class="truncate min-w-0" style={{ direction: "rtl", "text-align": "left" }}>
<bdi>
<span class="text-text-weak">{getDirectory(item.path)}</span>
<span class="text-text-strong">{getFilename(item.path)}</span>
</bdi>
</span>
<Show when={item.selection}>
{(sel) => (