fix spacing, fix #597

This commit is contained in:
Nicolas Constant 2023-08-06 02:01:53 -04:00
parent 7013d9174c
commit 590627bc58
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 5 additions and 1 deletions

View File

@ -46,6 +46,10 @@ $expand-color: $column-color;
}
}
.content {
white-space: pre-wrap;
}
//Mastodon styling
:host ::ng-deep .content {

View File

@ -97,7 +97,7 @@ export class DatabindedTextComponent implements OnInit {
let extractedUrl = extractedLinkAndNext[0].split('href="')[1].split('"')[0];
let classname = this.getClassNameForHastag(extractedHashtag);
this.processedText += ` <a href="${extractedUrl}" class="${classname}" title="#${extractedHashtag}" target="_blank" rel="noopener noreferrer">#${extractedHashtag}</a>`;
this.processedText += `<a href="${extractedUrl}" class="${classname}" title="#${extractedHashtag}" target="_blank" rel="noopener noreferrer">#${extractedHashtag}</a>`;
if (extractedLinkAndNext[1]) this.processedText += extractedLinkAndNext[1];
this.hashtags.push(extractedHashtag);
}