💄 fix editor header height shift
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user