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

Revert "Fix likert headings with images"

This reverts commit b5d3b810.

The old behaviour with non-scaling images is wanted here. Will improve in subsequent commit.
parent a7162059
No related branches found
No related tags found
No related merge requests found
...@@ -24,16 +24,19 @@ import { CompoundElementComponent } from './compound-element.directive'; ...@@ -24,16 +24,19 @@ import { CompoundElementComponent } from './compound-element.directive';
[style.font-style]="elementModel.italic ? 'italic' : ''" [style.font-style]="elementModel.italic ? 'italic' : ''"
[style.text-decoration]="elementModel.underline ? 'underline' : ''"> [style.text-decoration]="elementModel.underline ? 'underline' : ''">
<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"
<div>{{column.text}}</div> [style.object-fit]="'scale-down'"
[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>
<ng-container *ngFor="let row of elementModel.rows; let i = index"> <ng-container *ngFor="let row of elementModel.rows; let i = index">
......
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