mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-15 00:13:24 +00:00
tweak: modified files sidebar
This commit is contained in:
parent
502e85b903
commit
d4f6deb9ef
1 changed files with 1 additions and 0 deletions
|
|
@ -188,6 +188,7 @@ export function Sidebar(props: { sessionID: string }) {
|
|||
const splits = item.file.split(path.sep).filter(Boolean)
|
||||
const last = splits.at(-1)!
|
||||
const rest = splits.slice(0, -1).join(path.sep)
|
||||
if (!rest) return last
|
||||
return Locale.truncateMiddle(rest, 30 - last.length) + "/" + last
|
||||
})
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue