From 3921166d78540a08d329793c9c2f952135c6fd67 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 20 Dec 2019 20:14:58 +0100 Subject: [PATCH] (css) vertical-center modals, bullet as separator --- .../buttons/action-dropdown.component.ts | 2 +- .../video/video-miniature.component.html | 2 +- .../+video-watch/video-watch.component.html | 4 ++-- client/src/sass/bootstrap.scss | 21 +++++++++++++++++++ 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/client/src/app/shared/buttons/action-dropdown.component.ts b/client/src/app/shared/buttons/action-dropdown.component.ts index a4200f70f..5330ca220 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.ts +++ b/client/src/app/shared/buttons/action-dropdown.component.ts @@ -23,7 +23,7 @@ export class ActionDropdownComponent { @Input() actions: DropdownAction[] | DropdownAction[][] = [] @Input() entry: T - @Input() placement = 'bottom-left' + @Input() placement = 'bottom-left auto' @Input() buttonSize: DropdownButtonSize = 'normal' @Input() buttonDirection: DropdownDirection = 'horizontal' diff --git a/client/src/app/shared/video/video-miniature.component.html b/client/src/app/shared/video/video-miniature.component.html index c4b713073..23a7dbb1e 100644 --- a/client/src/app/shared/video/video-miniature.component.html +++ b/client/src/app/shared/video/video-miniature.component.html @@ -20,7 +20,7 @@ - - + • {{ video.views | myNumberFormatter }} views diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html index 9e69033e1..e87f59c98 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html @@ -43,7 +43,7 @@

{{ video.name }}

- Published - {{ video.views | myNumberFormatter }} views + Published • {{ video.views | myNumberFormatter }} views
@@ -54,7 +54,7 @@
- Published - {{ video.views | myNumberFormatter }} views + Published • {{ video.views | myNumberFormatter }} views
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss index 2944dd9e2..2f691de70 100644 --- a/client/src/sass/bootstrap.scss +++ b/client/src/sass/bootstrap.scss @@ -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); } -- 2.41.0