]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
(css) vertical-center modals, bullet as separator
authorRigel Kent <sendmemail@rigelk.eu>
Fri, 20 Dec 2019 19:14:58 +0000 (20:14 +0100)
committerRigel Kent <sendmemail@rigelk.eu>
Fri, 20 Dec 2019 20:15:28 +0000 (21:15 +0100)
client/src/app/shared/buttons/action-dropdown.component.ts
client/src/app/shared/video/video-miniature.component.html
client/src/app/videos/+video-watch/video-watch.component.html
client/src/sass/bootstrap.scss

index a4200f70f7ad97417fa98967a0f8872178b96e4a..5330ca220958e365e7541ffbba0bad207c09ca09 100644 (file)
@@ -23,7 +23,7 @@ export class ActionDropdownComponent<T> {
   @Input() actions: DropdownAction<T>[] | DropdownAction<T>[][] = []
   @Input() entry: T
 
-  @Input() placement = 'bottom-left'
+  @Input() placement = 'bottom-left auto'
 
   @Input() buttonSize: DropdownButtonSize = 'normal'
   @Input() buttonDirection: DropdownDirection = 'horizontal'
index c4b713073d5ba59d45bdf92a5846d0df8f03c32f..23a7dbb1e50298d59bef75608b883219c96b0f35 100644 (file)
@@ -20,7 +20,7 @@
         <my-date-toggle *ngIf="displayOptions.date" [date]="video.publishedAt"></my-date-toggle>
 
         <span class="views">
-          <ng-container *ngIf="displayOptions.date && displayOptions.views"> - </ng-container>
+          <ng-container *ngIf="displayOptions.date && displayOptions.views">  </ng-container>
           <ng-container i18n *ngIf="displayOptions.views">{{ video.views | myNumberFormatter }} views</ng-container>
         </span>
       </span>
index 9e69033e187978a3f6a71fd6e3964f210d73d6f0..e87f59c983ea20f15f02c7f496eafd6e40a1f9c6 100644 (file)
@@ -43,7 +43,7 @@
             <h1 class="video-info-name">{{ video.name }}</h1>
 
             <div i18n class="video-info-date-views">
-              Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle> <span class="views"> - {{ video.views | myNumberFormatter }} views</span>
+              Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle> <span class="views">  {{ video.views | myNumberFormatter }} views</span>
             </div>
           </div>
 
@@ -54,7 +54,7 @@
 
             <div class="video-info-first-row-bottom">
               <div i18n class="d-none d-md-block video-info-date-views">
-                Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle> <span class="views"> - {{ video.views | myNumberFormatter }} views</span>
+                Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle> <span class="views">  {{ video.views | myNumberFormatter }} views</span>
               </div>
 
               <div class="video-actions-rates">
index 2944dd9e241358df8ba3aa3f51622d40e21c80a7..2f691de703b87c3bc8fa792410fa2d440fb82ed9 100644 (file)
@@ -37,7 +37,28 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
   }
 }
 
+
+@media screen and (min-width: 768px) { 
+  .modal:before {
+    display: inline-block;
+    vertical-align: middle;
+    content: " ";
+    height: 100%;
+  }
+
+  .modal-dialog {
+    display: inline-block;
+    text-align: left;
+    vertical-align: middle;
+    min-width: 500px;
+    width: 40vw;
+    max-width: 900px;
+  }
+}
+
 .modal {
+  text-align: center;
+
   .modal-content {
     background-color: var(--mainBackgroundColor);
   }