From 453e639d2f2bea51b2b84b9053aecbb56de95c73 Mon Sep 17 00:00:00 2001 From: GabrielMeyer Date: Wed, 28 Aug 2019 10:14:10 +0200 Subject: [PATCH] Improves the layout of the projector - Adds a grid-layout to have a flexible view for different devices --- .../projector-detail.component.html | 546 +++++++++--------- .../projector-detail.component.scss | 11 - .../projector-detail.component.ts | 11 + 3 files changed, 287 insertions(+), 281 deletions(-) diff --git a/client/src/app/site/projector/components/projector-detail/projector-detail.component.html b/client/src/app/site/projector/components/projector-detail/projector-detail.component.html index f8e173fb8..96868c15c 100644 --- a/client/src/app/site/projector/components/projector-detail/projector-detail.component.html +++ b/client/src/app/site/projector/components/projector-detail/projector-detail.component.html @@ -5,290 +5,296 @@ -
-
- -
- + + +
+ +
+ +
+
+ +
+ + + + + + + +
{{ projector.scale }}
+ + + + + + + + + + + + +
+ {{ projector.scroll }} +
- - -
- - - - - - - -
{{ projector.scale }}
- - - - - - - - - - - - -
{{ projector.scroll }}
-
-
-
- - -
-
- -
-
- - - - {{ getSlideTitle(element) }} -
-
- -
-
-
-
+ + +
+
+ + +
- - - - - - Queue - -
-
+
+ + -
- drag_indicator -
-
- -
-
- {{ getSlideTitle(element) }} -
-
+ + {{ getSlideTitle(element) }} +
-
+ + +
+ + + + + + + Queue + +
+
+
+ drag_indicator +
+
+ +
+
+ {{ getSlideTitle(element) }} +
+
+
+ +
+
+
-
- - - - - - - - - - Previous slides - -

- {{ i + 1 }}.   {{ getSlideTitle(elements[0]) }} -

-
- - - - - Countdowns - - - - - - - - - - - - - - - Messages - - - - - - - - - - - - - - - - Current list of speakers - - - - - - - Slide - - - - - - - - Overlay - - + + - - - - - Chyron - - - + + - - + + + + Messages + + + + + + + + + + + - - + + + + Current list of speakers + + + + + + + Slide + + + + + + + + Overlay + + + + + + + + Chyron + + + + + + + + + +
-
-
+ + diff --git a/client/src/app/site/projector/components/projector-detail/projector-detail.component.scss b/client/src/app/site/projector/components/projector-detail/projector-detail.component.scss index 61ff7d595..dbe802f48 100644 --- a/client/src/app/site/projector/components/projector-detail/projector-detail.component.scss +++ b/client/src/app/site/projector/components/projector-detail/projector-detail.component.scss @@ -7,11 +7,6 @@ .column-left { color: black; - display: inline-block; - padding-top: 20px; - width: 60%; - min-width: 200px; - padding-right: 25px; /* Do not let the a tag ruin the projector */ a { @@ -20,12 +15,6 @@ } } -.column-right { - padding-top: 20px; - width: calc(40% - 30px); - float: right; -} - .control-group { color: rgba(0, 0, 0, 0.5); diff --git a/client/src/app/site/projector/components/projector-detail/projector-detail.component.ts b/client/src/app/site/projector/components/projector-detail/projector-detail.component.ts index e91a4de5d..72677b91f 100644 --- a/client/src/app/site/projector/components/projector-detail/projector-detail.component.ts +++ b/client/src/app/site/projector/components/projector-detail/projector-detail.component.ts @@ -15,6 +15,7 @@ import { ScrollScaleDirection } from 'app/core/repositories/projector/projector-repository.service'; import { DurationService } from 'app/core/ui-services/duration.service'; +import { SizeObject } from 'app/shared/components/tile/tile.component'; import { Countdown } from 'app/shared/models/core/countdown'; import { ProjectorElement } from 'app/shared/models/core/projector'; import { ProjectorMessage } from 'app/shared/models/core/projector-message'; @@ -52,6 +53,16 @@ export class ProjectorDetailComponent extends BaseViewComponent implements OnIni public projectorCount: number; + /** + * Defines the used sizes for different devices for the left column. + */ + public projectorTileSizeLeft: SizeObject = { medium: 8, large: 10 }; + + /** + * Defines the used sizes for different devices for the right column. + */ + public projectorTileSizeRight: SizeObject = { medium: 4, large: 6 }; + /** * true if the queue might be altered */