fix: truncate project name if it's too long
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
.toolbar-left {
|
.toolbar-left {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo-container {
|
.logo-container {
|
||||||
@@ -38,9 +39,13 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #e0e0e0;
|
color: #e0e0e0;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
display: flex;
|
display: block;
|
||||||
align-items: center;
|
min-width: 0;
|
||||||
|
max-width: 100%;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar button {
|
.toolbar button {
|
||||||
|
|||||||
@@ -1042,6 +1042,7 @@ const Toolbar: React.FC = () => {
|
|||||||
<div
|
<div
|
||||||
className="project-name"
|
className="project-name"
|
||||||
onClick={handleProjectNameClick}
|
onClick={handleProjectNameClick}
|
||||||
|
title={projectName}
|
||||||
>
|
>
|
||||||
{projectName}
|
{projectName}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user