Commit 31a54b04 authored by Christopher Fullarton's avatar Christopher Fullarton

Fixes ui bug in the live preview

parent c05fd33b
......@@ -16,7 +16,7 @@
class="answer-option-element d-flex justify-content-center align-items-center rounded m-2 cursor-pointer"
[style.flex-basis]="question.showOneAnswerPerRow ? '100%' : getComputedWidth()">
<p *ngIf="question.displayAnswerText"
class="mb-0 markdown-answer text-dark"
class="mb-0 markdown-answer text-dark mathjax-container overflow-hidden"
[innerHTML]="sanitizeHTML(elem)"></p>
<p *ngIf="!question.displayAnswerText"
class="mb-0 text-dark">{{normalizeAnswerOptionIndex(i)}}</p>
......@@ -35,7 +35,7 @@
<div class="px-4 preview-content position-relative overflow-auto">
<app-header [showHeader]="false"></app-header>
<ng-container *ngIf="connectionService.serverAvailable;else notAvailableTmpl">
<p class="mb-0"
<p class="mb-0 overflow-hidden mathjax-container"
[innerHTML]="sanitizeHTML(dataSource)"></p>
</ng-container>
</div>
......
......@@ -53,4 +53,10 @@
.server-not-available-label {
height: calc(100% - 10vh);
}
\ No newline at end of file
}
.mathjax-container {
::ng-deep svg {
max-width: 100%;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment