From df03d09b1631e6fb5d4ec68584b2fc6431b1c44c Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 19 Jul 2024 09:10:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E4=B8=8A-=E4=BF=AE=E6=94=B9=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Head/Header.js | 3 +-- src/forge/Head/header.scss | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/forge/Head/Header.js b/src/forge/Head/Header.js index f293d4763..70a9d681d 100644 --- a/src/forge/Head/Header.js +++ b/src/forge/Head/Header.js @@ -14,7 +14,6 @@ import '../../modules/tpm/TPMIndex.css'; import CheckProfile from '../Component/ProfileModal/Profile'; import './header.scss'; -// TODO 这部分脚本从公共脚本中直接调用 const { SubMenu } = Menu window._header_componentHandler = null; @@ -297,7 +296,7 @@ class NewHeader extends Component { {i.enterpriseName} ) }) - :暂无工作台 + :暂无工作台 } this.educoderloginysl()}>退出登录 diff --git a/src/forge/Head/header.scss b/src/forge/Head/header.scss index f83253186..60a9937d8 100644 --- a/src/forge/Head/header.scss +++ b/src/forge/Head/header.scss @@ -26,19 +26,28 @@ border-radius: 50%; margin-left: 15px; } + .subMyworkList { li{ - max-width: 120px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; + &:hover{ + background-color: #4cacff; + a{color: #fff!important;} + } + a{ + height: 40px; + line-height: 40px; + max-width: 150px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + padding:0px 12px; + } + } + span{ + display: block; height: 40px; line-height: 40px; padding:0px 12px; - &:hover{ - background-color: #829BFF; - a{color: #fff;} - } } }