diff --git a/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.html b/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.html index 74ac9f3fa..3518e0366 100644 --- a/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.html +++ b/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.html @@ -17,16 +17,25 @@ -
-
{{ number + 1 }}.
-
{{ speaker.getTitle() }}
-
- warning +
+
{{ number + 1 }}.
+
+
+
{{ speaker.getTitle() }}
+
+ +
+
+
+ {{ durationString(speaker) }} ({{ 'Start time' | translate }}: + {{ startTimeToString(speaker) }}) +
-
- {{ durationString(speaker) }} ({{ 'Start time' | translate }}: {{ startTimeToString(speaker) }}) -
-
+ +
@@ -177,7 +144,9 @@ matTooltip="{{ 'Forspeech' | translate }}" *ngIf="enableProContraSpeech && !speaker.point_of_order" > - add_circle_outline + + add_circle_outline + add_circle @@ -190,9 +159,8 @@ matTooltip="{{ 'Counter speech' | translate }}" *ngIf="enableProContraSpeech && !speaker.point_of_order" > - remove_circle_outline - - remove_circle + + remove_circle_outline speaker remove_circle @@ -331,3 +299,45 @@ + + + + + add_circle + + {{ 'Forspeech' | translate }} + + + + + + + remove_circle + + + {{ 'Counter speech' | translate }} + + + + + + star + + {{ 'Contribution' | translate }} + + + + + + warning + + {{ speaker.note }} + + + diff --git a/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.scss b/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.scss index f007253b2..40923192f 100644 --- a/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.scss +++ b/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.scss @@ -10,69 +10,21 @@ .mat-list-item { height: auto; - margin-bottom: 10px; - } + margin: 10px; - .finished-speaker-grid { + .mat-list-item-content { + display: block !important; + } + } + .finished-speakers-grid { + font-size: 14px; display: grid; - width: 100%; - grid-gap: 5px; + grid-gap: 1em; + grid-template-columns: min-content auto min-content; - grid-template-areas: - 'number name controls' - 'number time controls'; - grid-template-columns: 30px 1fr min-content; - } - - @include desktop { - .finished-speaker-grid { - grid-template-areas: 'number name point-of-order time controls'; - grid-template-columns: 30px 1fr min-content min-content; - } - } - - .number { - grid-area: number; - margin: 0; - } - - .name { - grid-area: name; - margin: 0; - } - - .point-of-order { - grid-area: point-of-order; - margin: 0; - //allows pushing this grid area as small as possible and aligns the end to the same level - white-space: nowrap; - font-size: 80%; - - .mat-icon { - line-height: 19px; - } - } - - .time { - grid-area: time; - margin: 0; - //allows pushing this grid area as small as possible and aligns the end to the same level - white-space: nowrap; - font-size: 80%; - } - - .controls { - grid-area: controls; - margin: 0; - opacity: 0.7; - - .mat-icon-button { - height: 20px; - line-height: 1; - - .mat-icon { - line-height: 19px; - } + .finished-speaker-info { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } } } diff --git a/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.ts b/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.ts index 09b89d9c4..ca8dbb779 100644 --- a/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.ts +++ b/client/src/app/shared/components/list-of-speakers-content/list-of-speakers-content.component.ts @@ -6,7 +6,8 @@ import { Input, OnInit, Output, - ViewChild + ViewChild, + ViewEncapsulation } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { MatDialog } from '@angular/material/dialog'; @@ -37,6 +38,7 @@ import { SortingListComponent } from '../sorting-list/sorting-list.component'; selector: 'os-list-of-speakers-content', templateUrl: './list-of-speakers-content.component.html', styleUrls: ['./list-of-speakers-content.component.scss'], + encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush }) export class ListOfSpeakersContentComponent extends BaseViewComponentDirective implements OnInit {