feat(desktop): Prioritize suffix when truncating path in header (#3110)
This commit is contained in:
@@ -41,11 +41,21 @@ export default function MoreMenuLayout({
|
|||||||
window.electron.directoryChooser(true);
|
window.electron.directoryChooser(true);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
style={{ minWidth: 0 }}
|
||||||
>
|
>
|
||||||
<Document className="mr-1" />
|
<Document className="mr-1" />
|
||||||
<div className="max-w-[200px] truncate [direction:rtl]">
|
<span
|
||||||
|
className="flex-grow block text-ellipsis overflow-hidden"
|
||||||
|
style={{
|
||||||
|
direction: 'rtl',
|
||||||
|
textAlign: 'left',
|
||||||
|
unicodeBidi: 'plaintext',
|
||||||
|
minWidth: 0,
|
||||||
|
maxWidth: '100%',
|
||||||
|
}}
|
||||||
|
>
|
||||||
{String(window.appConfig.get('GOOSE_WORKING_DIR'))}
|
{String(window.appConfig.get('GOOSE_WORKING_DIR'))}
|
||||||
</div>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent className="max-w-96 overflow-auto scrollbar-thin" side="top">
|
<TooltipContent className="max-w-96 overflow-auto scrollbar-thin" side="top">
|
||||||
|
|||||||
Reference in New Issue
Block a user