Commit 04e79f13 authored by chenshouchao's avatar chenshouchao

feat: 项目名称超长样式优化

parent 53f3ef04
...@@ -17,16 +17,21 @@ ...@@ -17,16 +17,21 @@
.info { .info {
flex: 1; flex: 1;
} }
.name { .productName {
color: #1e2633; color: #1e2633;
line-height: 22px; line-height: 22px;
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
} }
.desc { .projectName {
color: #8a9099; color: #8a9099;
line-height: 20px; line-height: 20px;
font-size: 14px; font-size: 14px;
width: 125px;
white-space: nowrap;
text-overflow: ellipsis;
display: block;
overflow: hidden;
} }
.showProjectList { .showProjectList {
color: #c2c6cc; color: #c2c6cc;
......
...@@ -58,10 +58,10 @@ const CurrentProject = observer(() => { ...@@ -58,10 +58,10 @@ const CurrentProject = observer(() => {
> >
<img src={logo} alt="" className={style.logo} /> <img src={logo} alt="" className={style.logo} />
<div className={style.info}> <div className={style.info}>
<div className={style.name}> <div className={style.productName}>
{currentProjectStore.currentProductInfo.name || "CADD"} {currentProjectStore.currentProductInfo.name || "CADD"}
</div> </div>
<div className={style.desc}> <div className={style.projectName} title={currentProjectStore.currentProjectInfo.name}>
{currentProjectStore.currentProjectInfo.name || "暂无项目"} {currentProjectStore.currentProjectInfo.name || "暂无项目"}
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment