Inline plaintext document previews for complete styling

This commit is contained in:
shamoon
2023-04-03 10:03:59 -07:00
parent 4a69d4c681
commit 515714325d
4 changed files with 46 additions and 22 deletions

View File

@@ -208,7 +208,7 @@
</ng-template>
</ng-container>
<ng-container *ngIf="getContentType() === 'text/plain'">
<object [data]="previewUrl | safeUrl" type="text/plain" class="preview-sticky bg-white" width="100%"></object>
<div [innerHTML]="previewHtml | safeHtml" class="preview-sticky bg-light p-3" width="100%"></div>
</ng-container>
<div *ngIf="requiresPassword" class="password-prompt">
<form>