Commit 0e599fa1 authored by 杨思琦's avatar 杨思琦

fix: 消息提示修改

parent c737fe08
Pipeline #86225 passed with stages
...@@ -60,9 +60,14 @@ const PlatformModal = ({ platformVisible, handleClosePlatform, handlerMointer, m ...@@ -60,9 +60,14 @@ const PlatformModal = ({ platformVisible, handleClosePlatform, handlerMointer, m
<img src={icon} alt="" /> <img src={icon} alt="" />
<div className={styles.content}> <div className={styles.content}>
<div className={styles['content-top']}> <div className={styles['content-top']}>
<a onClick={event => handlerMointer(event, message, true)}> <div className={styles['content-top-title']}>
{message && message.infoContent && message.infoContent.title} <a
</a> onClick={event => handlerMointer(event, message, true)}
title={message && message.infoContent && message.infoContent.title}
>
{message && message.infoContent && `${message.infoContent.title} ${message.infoContent.title}`}
</a>
</div>
<span title="点击标为已读" onClick={event => handlerMointer(event, message, false)} /> <span title="点击标为已读" onClick={event => handlerMointer(event, message, false)} />
</div> </div>
{isAlarm ? ( {isAlarm ? (
......
@import '~antd/es/style/themes/variable.less'; @import '~antd/es/style/themes/variable.less';
@pro-header-hover-bg: rgba(0, 0, 0, 0.025); @pro-header-hover-bg: rgba(0, 0, 0, 0.025);
@keyframes marque-animation {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-40%);
}
}
.menu { .menu {
:global(.@{ant-prefix}icon) { :global(.@{ant-prefix}icon) {
...@@ -420,11 +428,18 @@ ...@@ -420,11 +428,18 @@
white-space: nowrap; white-space: nowrap;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
a { &-title {
text-overflow: ellipsis; flex: 1;
text-overflow: clip;
overflow: hidden; overflow: hidden;
white-space: nowrap; margin-right: 15px;
margin-right: 30px; display: flex;
a {
animation: marque-animation 10s linear infinite;
}
a:hover {
animation-play-state: paused;
}
} }
span { span {
width: 18px; width: 18px;
......
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