Node.js based forum software built for the modern web
fix: closes #13206, truncate long usernames
Barış Soner Uşaklı51872d5435b2
diff --git a/src/views/partials/chats/parent.tpl b/src/views/partials/chats/parent.tplindex 2d2e66bf3b..68f91414c5 100644--- a/src/views/partials/chats/parent.tpl+++ b/src/views/partials/chats/parent.tpl@@ -4,7 +4,7 @@<div><i class="fa fa-sm fa-reply opacity-50"></i></div><div class="d-flex flex-nowrap gap-1 align-items-center"><a href="{config.relative_path}/user/{messages.parent.user.userslug}" class="text-decoration-none lh-1">{buildAvatar(messages.parent.user, "14px", true, "not-responsive align-middle")}</a>- <a class="chat-user fw-semibold" href="{config.relative_path}/user/{messages.parent.user.userslug}">{messages.parent.user.displayname}</a>+ <a class="chat-user fw-semibold text-truncate" style="max-width: 150px;" href="{config.relative_path}/user/{messages.parent.user.userslug}">{messages.parent.user.displayname}</a></div><span class="chat-timestamp text-muted timeago text-nowrap hidden" title="{messages.parent.timestampISO}"></span></div>diff --git a/src/views/partials/topic/post-parent.tpl b/src/views/partials/topic/post-parent.tplindex cabc6bb36c..38f22da616 100644--- a/src/views/partials/topic/post-parent.tpl+++ b/src/views/partials/topic/post-parent.tpl@@ -3,7 +3,7 @@<div><i class="fa fa-fw fa-reply opacity-50"></i></div><div class="d-flex flex-nowrap gap-1 align-items-center"><a href="{config.relative_path}/user/{./parent.user.userslug}" class="text-decoration-none lh-1">{buildAvatar(./parent.user, "16px", true, "not-responsive align-middle")}</a>- <a class="fw-semibold" href="{config.relative_path}/user/{./parent.user.userslug}">{./parent.user.displayname}</a>+ <a class="fw-semibold text-truncate" style="max-width: 150px;" href="{config.relative_path}/user/{./parent.user.userslug}">{./parent.user.displayname}</a></div><a href="{config.relative_path}/post/{./parent.pid}" class="text-muted timeago text-nowrap hidden" title="{./parent.timestampISO}"></a>