]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/menu/avatar-notification.component.scss
Fix notification popover width
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / avatar-notification.component.scss
index 807385022d64bd4b22be3c121d5a68b820cae186..e785db7886ea537fd52c62d9858f19ac84d88cfe 100644 (file)
@@ -3,7 +3,7 @@
 
 /deep/ {
   .popover-notifications.popover {
-    max-width: 400px;
+    max-width: none;
 
     .popover-body {
       padding: 0;
@@ -11,9 +11,8 @@
       font-family: $main-fonts;
       overflow-y: auto;
       max-height: 500px;
-      min-width: 200px;
+      width: 400px;
       box-shadow: 0 6px 14px rgba(0, 0, 0, 0.30);
-      overflow-y: auto;
 
       .notifications-header {
         display: flex;
@@ -42,7 +41,7 @@
         justify-content: center;
         font-weight: $font-semibold;
         color: var(--mainForegroundColor);
-        height: 30px;
+        padding: 7px 0;
       }
     }
   }
@@ -73,7 +72,7 @@
     justify-content: center;
 
     background-color: var(--mainColor);
-    color: var(--mainBackgroundColor);
+    color: var(#fff);
     font-size: 10px;
     font-weight: $font-semibold;
 
     height: 15px;
   }
 }
+
+@media screen and (max-width: $mobile-view) {
+  /deep/ {
+    .popover-notifications.popover .popover-body {
+      width: 400px;
+    }
+  }
+}