💄 fix editor header height shift

This commit is contained in:
2026-03-06 12:24:49 +10:00
parent 636c0f378f
commit 56381d1815
2 changed files with 7 additions and 3 deletions

View File

@@ -340,8 +340,11 @@ export function AnalysisToolbar(): JSX.Element {
</span>
)}
{activeFilePath && (
<span className="toolbar-filename">
{activeFilePath.split('/').pop()?.replace(/\.md$/, '')}
<span className="toolbar-filename" title={activeFilePath.split('/').pop()?.replace(/\.md$/, '')}>
{(() => {
const name = activeFilePath.split('/').pop()?.replace(/\.md$/, '') ?? ''
return name.length > 30 ? name.slice(0, 30) + '…' : name
})()}
</span>
)}
</div>