Fix profile name alignment for pinned post

This commit is contained in:
idotj 2025-03-05 22:09:26 +01:00
parent 8e27d85395
commit 0498bd554f
4 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
v4.5.1 - 05/03/2025
- Fix profile name alignment for pinned post
v4.5.0 - 01/03/2025
- Allow to filter posts by language
- Update documentation

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -578,7 +578,7 @@ export class Init {
const formattedDate = this.#formatDate(date);
const dateHTML =
'<div class="mt-post-header-date">' +
(c.pinned ? "<svg>...</svg>" : "") +
(c.pinned ? '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24" class="mt-post-pinned" aria-hidden="true"><path d="m640-480 80 80v80H520v240l-40 40-40-40v-240H240v-80l80-80v-280h-40v-80h400v80h-40v280Zm-286 80h252l-46-46v-314H400v314l-46 46Zm126 0Z"></path></svg>' : "") +
'<a href="' +
url +
'" rel="nofollow noopener noreferrer" target="_blank">' +