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:
parent
4e20d70a99
commit
648c1db437
18 changed files with 608 additions and 59 deletions
53
app/react/components/PageHeader/NotificationsMenu.module.css
Normal file
53
app/react/components/PageHeader/NotificationsMenu.module.css
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue