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

[editor] Fix spaces on sub and sup elements in cloze

Turns out the space within the template code are doing this.

#270
parent 187ad4a0
No related branches found
No related tags found
No related merge requests found
Pipeline #38555 canceled
......@@ -144,22 +144,14 @@ import { ClozeElement } from 'common/models/elements/compound-elements/cloze/clo
<ng-container *ngIf="$any(subPart).type === 'text' &&
(!(subPart.marks | markList).includes('superscript')) &&
(!(subPart.marks | markList).includes('subscript'))">
<span [ngStyle]="subPart.marks | styleMarks">
{{subPart.text}}
</span>
<span [ngStyle]="subPart.marks | styleMarks">{{subPart.text}}</span>
</ng-container>
<ng-container *ngIf="$any(subPart).type === 'text' && (subPart.marks | markList).includes('superscript')">
<sup [ngStyle]="subPart.marks | styleMarks">
{{subPart.text}}
</sup>
<sup [ngStyle]="subPart.marks | styleMarks">{{subPart.text}}</sup>
</ng-container>
<ng-container *ngIf="$any(subPart).type === 'text' && (subPart.marks | markList).includes('subscript')">
<sub [ngStyle]="subPart.marks | styleMarks">
{{subPart.text}}
</sub>
<sub [ngStyle]="subPart.marks | styleMarks">{{subPart.text}}</sub>
</ng-container>
<ng-container *ngIf="$any(subPart).type === 'image'">
<img [src]="subPart.attrs.src" [alt]="subPart.attrs.alt"
[style.display]="'inline-block'"
......
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