1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 07:19:41 +02:00

feat(notifications): track toast notifications [EE-4132] (#7711)

* feat(notifications): track toast notifications [EE-4132]

* suggested refactoring

* fix failing test

* remove duplicate styles

* applying spacing to context icon
This commit is contained in:
itsconquest 2022-09-23 17:17:44 +12:00 committed by GitHub
parent 4e20d70a99
commit 648c1db437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 608 additions and 59 deletions

View file

@ -0,0 +1,53 @@
.badge {
position: absolute;
top: 8px;
right: 10px;
width: 6px;
height: 6px;
background: red;
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
}
.notification-container {
display: flex;
border-bottom: 1px solid var(--ui-gray-4);
padding: 5px 10px;
margin-bottom: 15px;
}
.item-last {
margin-left: auto;
}
.container {
display: flex;
}
.notificationIcon {
flex-basis: 5rem;
width: 5rem;
}
.notificationBody {
flex-basis: 30rem;
}
.deleteButton {
flex-basis: 5rem;
}
.container > div {
padding: 0px 10px;
margin: auto;
}
.notification-title {
font-weight: 700;
}
.notification-link {
border-top: 1px solid var(--ui-gray-4);
padding: 10px;
text-align: center;
}