X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmenu%2Favatar-notification.component.scss;h=d0f01fc3277d0c752238332302e7bc79035bb640;hb=14981d7331da3f63fe6cfaf020ccb7c910006eaf;hp=e785db7886ea537fd52c62d9858f19ac84d88cfe;hpb=73471b1a52f242e86364ffb077ea6cadb3b07ae2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/menu/avatar-notification.component.scss b/client/src/app/menu/avatar-notification.component.scss index e785db788..d0f01fc32 100644 --- a/client/src/app/menu/avatar-notification.component.scss +++ b/client/src/app/menu/avatar-notification.component.scss @@ -1,7 +1,7 @@ @import '_variables'; @import '_mixins'; -/deep/ { +::ng-deep { .popover-notifications.popover { max-width: none; @@ -9,11 +9,27 @@ padding: 0; font-size: 14px; font-family: $main-fonts; - overflow-y: auto; - max-height: 500px; + overflow-y: scroll; width: 400px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.30); + .loader { + display: flex; + align-items: center; + justify-content: center; + + padding: 5px 0; + } + + .content { + max-height: 150px; + transition: max-height 0.15s ease-out; + + &.loaded { + max-height: 500px; + } + } + .notifications-header { display: flex; justify-content: space-between; @@ -40,7 +56,7 @@ align-items: center; justify-content: center; font-weight: $font-semibold; - color: var(--mainForegroundColor); + color: $fg-color; padding: 7px 0; } } @@ -83,7 +99,7 @@ } @media screen and (max-width: $mobile-view) { - /deep/ { + ::ng-deep { .popover-notifications.popover .popover-body { width: 400px; }