]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix notification with large message
authorChocobozzz <me@florianbigard.com>
Thu, 20 Dec 2018 10:18:29 +0000 (11:18 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 20 Dec 2018 10:18:29 +0000 (11:18 +0100)
client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html
client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html
client/src/app/app.component.html
client/src/sass/primeng-custom.scss

index 0374b70ef26c7c0e06fe44298565721e71bb19b8..e862d51620e2318032af1c0e9b5857e2cedbdc8f 100644 (file)
@@ -41,7 +41,7 @@
       </td>
 
       <td class="action-cell">
-        <my-action-dropdown i18n-label label="Actions" [actions]="videoAbuseActions" [entry]="videoAbuse"></my-action-dropdown>
+        <my-action-dropdown placement="bottom-right" i18n-label label="Actions" [actions]="videoAbuseActions" [entry]="videoAbuse"></my-action-dropdown>
       </td>
     </tr>
   </ng-template>
@@ -62,4 +62,4 @@
   </ng-template>
 </p-table>
 
-<my-moderation-comment-modal #moderationCommentModal (commentUpdated)="onModerationCommentUpdated()"></my-moderation-comment-modal>
\ No newline at end of file
+<my-moderation-comment-modal #moderationCommentModal (commentUpdated)="onModerationCommentUpdated()"></my-moderation-comment-modal>
index ff4543b975334a41fe4b4cebbbe55b85b8adfa4e..7cef787d21e8b1d8112854914a477470dae1f86e 100644 (file)
@@ -30,7 +30,7 @@
       <td>{{ videoBlacklist.createdAt }}</td>
 
       <td class="action-cell">
-        <my-action-dropdown i18n-label label="Actions" [actions]="videoBlacklistActions" [entry]="videoBlacklist"></my-action-dropdown>
+        <my-action-dropdown i18n-label  placement="bottom-right" label="Actions" [actions]="videoBlacklistActions" [entry]="videoBlacklist"></my-action-dropdown>
       </td>
     </tr>
   </ng-template>
index 0489c9558e74ab14aa38ccdaab9b379c2b003b4f..3a60139e14a75cd65daa8b2e97b7382f3d5a7641 100644 (file)
 <my-confirm></my-confirm>
 <p-toast position="bottom-right">
   <ng-template let-message pTemplate="message">
-    <div class="message">
-      <h3>{{ message.summary }}</h3>
-      <p>{{ message.detail }}</p>
-    </div>
+    <div class="notification-block">
+      <div class="message">
+        <h3>{{ message.summary }}</h3>
+        <p>{{ message.detail }}</p>
+      </div>
 
-    <span *ngIf="message.severity === 'success'" class="glyphicon glyphicon-ok"></span>
-    <span *ngIf="message.severity === 'info'" class="glyphicon glyphicon-info-sign"></span>
-    <span *ngIf="message.severity === 'error'" class="glyphicon glyphicon-remove"></span>
+      <span *ngIf="message.severity === 'success'" class="glyphicon glyphicon-ok"></span>
+      <span *ngIf="message.severity === 'info'" class="glyphicon glyphicon-info-sign"></span>
+      <span *ngIf="message.severity === 'error'" class="glyphicon glyphicon-remove"></span>
+    </div>
   </ng-template>
 </p-toast>
index 21452fa16d43d663538304934aba5fe61811301d..8b3e0b81361c100af4565ff4858561673ba1ba19 100644 (file)
@@ -324,23 +324,24 @@ p-toast {
       background-color: #03A9F4 !important;
     }
 
-    .message {
-      float: left;
+    .notification-block {
+      display: flex;
 
-      h3 {
-        font-size: 21px;
-      }
+      .message {
+        h3 {
+          font-size: 21px;
+        }
 
-      p {
-        font-size: 15px;
+        p {
+          font-size: 15px;
+        }
       }
-    }
 
-    .glyphicon {
-      float: right;
-      font-size: 32px;
-      margin-top: 15px;
-      margin-right: 5px;
+      .glyphicon {
+        font-size: 32px;
+        margin-top: 15px;
+        margin-right: 5px;
+      }
     }
   }
 }