]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix notification popover width
authorChocobozzz <me@florianbigard.com>
Mon, 21 Jan 2019 13:03:04 +0000 (14:03 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 21 Jan 2019 13:03:04 +0000 (14:03 +0100)
client/src/app/menu/avatar-notification.component.scss
client/src/app/menu/menu.component.scss

index a21e7beac31250efc39cf3759b3b0f929e7127c8..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;
     height: 15px;
   }
 }
+
+@media screen and (max-width: $mobile-view) {
+  /deep/ {
+    .popover-notifications.popover .popover-body {
+      width: 400px;
+    }
+  }
+}
index a4aaadc7fe8576b7847ba42228d5981969e0d5c4..24b1a4db3a78f2829d1f1907b2b3ffb2d6236576 100644 (file)
@@ -243,7 +243,7 @@ menu {
   }
 }
 
-@media screen and (max-width: 400px) {
+@media screen and (max-width: $mobile-view) {
   .menu-wrapper {
     width: 100% !important;
   }