Skip to content
Snippets Groups Projects
Commit b5d3b810 authored by rhenck's avatar rhenck
Browse files

Fix likert headings with images

Use flex to position image and text below one another. Don't use any 
image scaling setting. Now the images grow but don't shrink.
parent 2b9abc43
No related branches found
No related tags found
No related merge requests found
...@@ -28,19 +28,16 @@ import { CompoundElementComponent } from './compound-element.directive'; ...@@ -28,19 +28,16 @@ import { CompoundElementComponent } from './compound-element.directive';
[style.grid-row-start]="1" [style.grid-row-start]="1"
[style.grid-row-end]="2"> [style.grid-row-end]="2">
<div *ngFor="let column of elementModel.columns; let i = index" class="columns" <div *ngFor="let column of elementModel.columns; let i = index" class="columns"
fxLayout="column"
[style.grid-column-start]="2 + i" [style.grid-column-start]="2 + i"
[style.grid-column-end]="3 + i" [style.grid-column-end]="3 + i"
[style.grid-row-start]="1" [style.grid-row-start]="1"
[style.grid-row-end]="2"> [style.grid-row-end]="2">
<img *ngIf="column.imgSrc && column.position === 'above'" <img *ngIf="column.imgSrc && column.position === 'above'"
[src]="column.imgSrc | safeResourceUrl" alt="Image Placeholder" [src]="column.imgSrc | safeResourceUrl" alt="Image Placeholder">
[style.object-fit]="'scale-down'" <div>{{column.text}}</div>
[width]="200">
{{column.text}}
<img *ngIf="column.imgSrc && column.position === 'below'" <img *ngIf="column.imgSrc && column.position === 'below'"
[src]="column.imgSrc | safeResourceUrl" alt="Image Placeholder" [src]="column.imgSrc | safeResourceUrl" alt="Image Placeholder">
[style.object-fit]="'scale-down'"
[width]="200">
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment