fix: truncate project name if it's too long

This commit is contained in:
Xiaohan-Tian
2026-05-25 15:28:38 -07:00
parent d4cc4c8a37
commit 3f96b13d8a
2 changed files with 8 additions and 2 deletions
+7 -2
View File
@@ -21,6 +21,7 @@
.toolbar-left {
display: flex;
align-items: center;
min-width: 0;
}
.logo-container {
@@ -38,9 +39,13 @@
font-size: 14px;
color: #e0e0e0;
margin-right: 20px;
display: flex;
align-items: center;
display: block;
min-width: 0;
max-width: 100%;
pointer-events: auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.toolbar button {
+1
View File
@@ -1042,6 +1042,7 @@ const Toolbar: React.FC = () => {
<div
className="project-name"
onClick={handleProjectNameClick}
title={projectName}
>
{projectName}
</div>