💄 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> </span>
)} )}
{activeFilePath && ( {activeFilePath && (
<span className="toolbar-filename"> <span className="toolbar-filename" title={activeFilePath.split('/').pop()?.replace(/\.md$/, '')}>
{activeFilePath.split('/').pop()?.replace(/\.md$/, '')} {(() => {
const name = activeFilePath.split('/').pop()?.replace(/\.md$/, '') ?? ''
return name.length > 30 ? name.slice(0, 30) + '…' : name
})()}
</span> </span>
)} )}
</div> </div>

View File

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