X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmenu%2Favatar-notification.component.scss;h=201668b6e54ea28cd3416991a9e3da039dbe8414;hb=ffb321bedca46d6987c7b31dd58e5dea96ea2ea2;hp=47d04ace33a0c9b6c8568fc3085eddb63ab36d5f;hpb=f242c2e01e3423ad63a9a6d904062256d60b6971;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 47d04ace3..201668b6e 100644 --- a/client/src/app/menu/avatar-notification.component.scss +++ b/client/src/app/menu/avatar-notification.component.scss @@ -3,17 +3,33 @@ /deep/ { .popover-notifications.popover { - max-width: 400px; + max-width: none; .popover-body { padding: 0; font-size: 14px; font-family: $main-fonts; - overflow-y: auto; - max-height: 500px; - min-width: 200px; + 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; @@ -41,7 +57,7 @@ justify-content: center; font-weight: $font-semibold; color: var(--mainForegroundColor); - height: 30px; + padding: 7px 0; } } } @@ -72,7 +88,7 @@ justify-content: center; background-color: var(--mainColor); - color: var(--mainBackgroundColor); + color: var(#fff); font-size: 10px; font-weight: $font-semibold; @@ -81,3 +97,11 @@ height: 15px; } } + +@media screen and (max-width: $mobile-view) { + /deep/ { + .popover-notifications.popover .popover-body { + width: 400px; + } + } +}