[accelerator] fix preview UX on mobile when there is an error/warning

This commit is contained in:
nymkappa committed 2023-11-23 17:00:57 +09:00
1 parent 2d5964b81e
commit c11551de7b
4 files changed
+11 -8

No files matched your search

@@ -1,2 +1,2 @@
<div class="alert alert-danger" [innerHTML]="errorContent">
<div class="alert" [class]="alertClass" [innerHTML]="errorContent">
</div>
@@ -33,6 +33,7 @@ export function isMempoolError(error: string) {
})
export class MempoolErrorComponent implements OnInit {
@Input() error: string;
@Input() alertClass = 'alert-danger';
errorContent: SafeHtml;
constructor(private sanitizer: DomSanitizer) { }