💄 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>

View File

@@ -22,6 +22,7 @@
align-items: center;
gap: 10px;
overflow: hidden;
flex-shrink: 0;
}
.toolbar-btn {
@@ -93,7 +94,7 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 260px;
width: 180px;
}
.toolbar-fontsize {