From aaa58e532b399896cbcbe846740d464f627457a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Wed, 15 Sep 2021 14:23:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Head/Header.js | 3 ++- src/forge/Head/NoticeContent.jsx | 8 +++++--- src/forge/Head/header.scss | 17 +++++++++++------ src/forge/SecuritySetting/Index.jsx | 4 ++-- .../notice/myNotice/Index.scss | 19 +++++++++++++------ 5 files changed, 33 insertions(+), 18 deletions(-) diff --git a/src/forge/Head/Header.js b/src/forge/Head/Header.js index 27470ca4..1896f484 100644 --- a/src/forge/Head/Header.js +++ b/src/forge/Head/Header.js @@ -447,8 +447,9 @@ class NewHeader extends Component { content={} visible={visible} onVisibleChange={this.handleVisibleChange} + visible = 'true' > - + diff --git a/src/forge/Head/NoticeContent.jsx b/src/forge/Head/NoticeContent.jsx index ff715ad4..f4aab109 100644 --- a/src/forge/Head/NoticeContent.jsx +++ b/src/forge/Head/NoticeContent.jsx @@ -163,6 +163,8 @@ function NoticeContent({ visible, showNotification, resetUserInfo, current_user: > { noticeUnreadList.map(item => { + console.log(item.content); + console.log(item.content.length); let contentStr = item.content.endsWith("") && item.content.length >= 50 && item.content.replace("", "").substr(0, 40) + "..."; return (
{ readItem(item) }}> @@ -172,7 +174,7 @@ function NoticeContent({ visible, showNotification, resetUserInfo, current_user:
- = 48 ? item.content.substr(0, 48) + "..." : item.content }}> + = 48 ? item.content.substr(0, 48) + "..." : item.content }}> {item.time_ago}
@@ -199,7 +201,7 @@ function NoticeContent({ visible, showNotification, resetUserInfo, current_user:
- = 50 ? item.content.substr(0, 50) + "...@我" : item.content }}> + = 50 ? item.content.substr(0, 50) + "...@我" : item.content }}> {item.time_ago}
@@ -226,7 +228,7 @@ function NoticeContent({ visible, showNotification, resetUserInfo, current_user: ) }) : "暂无数据" : ""} */}
- 全部消息 + 全部消息 所有{noticeType === "notification" ? "系统消息" : noticeType === "letter" ? "私信" : "@我"}一键已读
diff --git a/src/forge/Head/header.scss b/src/forge/Head/header.scss index d870a5f5..66a045b2 100644 --- a/src/forge/Head/header.scss +++ b/src/forge/Head/header.scss @@ -224,17 +224,22 @@ } .noticeCont-text{ - flex: auto; - position: relative; - max-height: 48px; + display: flex; color:#333333; + & .content-span{ + width: 255px; + max-height: 42px; + word-break: break-all; + overflow: hidden; + // white-space: nowrap; + // text-overflow: ellipsis; + } + .timeSpan{ - position: absolute; - right: 3px; - bottom: 0px; font-size: 12px; color: #666666; + margin-left: 5px; } .at-name{ diff --git a/src/forge/SecuritySetting/Index.jsx b/src/forge/SecuritySetting/Index.jsx index 4a9430c0..7330040b 100644 --- a/src/forge/SecuritySetting/Index.jsx +++ b/src/forge/SecuritySetting/Index.jsx @@ -61,7 +61,7 @@ function Index(props){