only show external link icon for external links

This commit is contained in:
2023-03-23 18:14:24 +01:00
parent bacd86d836
commit 75f45c4d87
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
<mat-label>Text</mat-label>
<textarea matInput [(ngModel)]="text" #textElement focus></textarea>
</mat-form-field>
<div>Text field supports <a href="https://spec.commonmark.org/" target="_blank" rel="noopener">Markdown</a>.</div>
<div>Text field supports <a href="https://spec.commonmark.org/" class="external-link" target="_blank" rel="noopener">Markdown</a>.</div>
</div>
<div mat-dialog-actions align="end">
<button mat-button mat-dialog-close (click)="close()">Cancel</button>

View File

@@ -209,7 +209,7 @@ app-add-text-dialog .mat-mdc-form-field-subscript-wrapper {
line-height: 1em;
}
a[target="_blank"]:after {
a.external-link:after {
content: "";
display: inline-block;
background: url("assets/img/external-link.svg") no-repeat;