Minor layout improvements

- Improved motion block slide layout
- Increase width of statute paragraph title form field
- hide identifier in motion form for unprivileged users/submitters
This commit is contained in:
Emanuel Schütze 2019-03-20 21:31:37 +01:00
parent 63a2c6b05b
commit e54d0cf087
4 changed files with 11 additions and 3 deletions

View File

@ -557,7 +557,7 @@
<div class="form-id-title">
<!-- Identifier -->
<div *ngIf="editMotion && !newMotion" class="content-field form-identifier">
<div *ngIf="editMotion && !newMotion && perms.isAllowed('change_metadata', motion)" class="content-field form-identifier">
<mat-form-field *ngIf="editMotion">
<input
matInput

View File

@ -9,4 +9,8 @@
mat-card {
margin-bottom: 20px;
mat-form-field {
width: 100%;
}
}

View File

@ -4,12 +4,12 @@
<h2><span translate>Motion block</span> {{ data.data.motions.length }} <span translate>motions</span></h2>
</div>
<div *ngFor="let motion of data.data.motions">
<div *ngFor="let motion of data.data.motions" class="blockitem">
<div class="ellipsis-overflow">
{{ getMotionTitle(motion) }}
</div>
<div class="white ellipsis-overflow">
<mat-basic-chip *ngIf="motion.recommendation" disableRipple [ngClass]="getStateCssColor(motion)">
<mat-basic-chip *ngIf="motion.recommendation" disableRipple [ngClass]="getStateCssColor(motion)" class="block-recommendation">
{{ getRecommendationLabel(motion) }}
</mat-basic-chip>
</div>

View File

@ -0,0 +1,4 @@
.blockitem {
line-height: 1;
margin-bottom: 10px;
}