1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Moving notification icons to top (#1987)

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-01-19 18:19:01 +03:00 committed by GitHub
parent e318c59098
commit c561c2a9c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -46,5 +46,9 @@
box-shadow: 0 0 20px $boxShadow;
}
}
.close {
margin-top: -2px;
}
}
}

View File

@ -74,14 +74,14 @@ export class Notifications extends React.Component {
return (
<Animate key={id}>
<div
className={cssNames("notification flex align-center", status)}
className={cssNames("notification flex", status)}
onMouseLeave={() => addAutoHideTimer(notification)}
onMouseEnter={() => removeAutoHideTimer(notification)}>
<div className="box center">
<div className="box">
<Icon material="info_outline" />
</div>
<div className="message box grow">{msgText}</div>
<div className="box center">
<div className="box">
<Icon
material="close" className="close"
onClick={prevDefault(() => {