Fix a minor issue that added extra spacing

This commit is contained in:
SondreB 2023-02-19 02:05:03 +01:00
parent a500d475b8
commit 65af14991c
No known key found for this signature in database
GPG Key ID: D6CC44C75005FDBF
2 changed files with 1 additions and 2 deletions

View File

@ -68,7 +68,6 @@
<span class="event-content clickable" [ngClass]="{ 'event-content-big': content && content.length < 7 }">
<ng-container *ngFor="let token of dynamicText">
<ng-template [ngIf]="isString(token)">{{ token }}</ng-template>
<ng-template [ngIf]="!isString(token) && isFollowing" [ngSwitch]="token.token">
<ng-container *ngSwitchCase="'username'"><a class="reply-link" [routerLink]="['/p', token.word]">@{{ getDisplayName(token.word) }}</a></ng-container>
<ng-container *ngSwitchCase="'link'"><a [href]="[token.word]" target="_blank">{{ token.word }}</a></ng-container>

View File

@ -297,7 +297,7 @@ export class ContentComponent {
}
} else {
if (!res[i]) res[i] = token;
else res[i] += ' ' + token;
else res[i] += token;
}
}
return res;