Skip to content
This repository was archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
reduce path to <dir>/<file> in tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonLoir committed Jun 13, 2024
1 parent 989c832 commit e24f503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/app/components/Scaffold/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default function Main() {
onPress={() => (workspace.currentFile = file)}
className={`flex flex-row p-5 gap-2 ${file === current ? 'bg-[rgb(30,30,30)]' : ''}`}
>
<Text className={'text-white'}>{file}</Text>
<Text className={'text-white'}>
{file.split('/').slice(-2).join('/')}
</Text>
<Text
className={'text-white'}
onPress={async (e) => {
Expand Down

0 comments on commit e24f503

Please sign in to comment.