aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-11-28 12:58:18 +0000
committerr <r@freesoftwareextremist.com>2020-11-28 12:58:18 +0000
commitb35d62ecbb96b6d5f83b0453ca16e8dc45b39657 (patch)
tree94d02d2d6e0687942bab8e6d2a288a8792097796
parent8f5fbab8dc005698d0cf1ba0c8f6dc121afce198 (diff)
downloadbloat-b35d62ecbb96b6d5f83b0453ca16e8dc45b39657.tar.gz
bloat-b35d62ecbb96b6d5f83b0453ca16e8dc45b39657.zip
Fix RTL display name rendering
Wrap all the inline display names in a <bdi> tag
-rw-r--r--templates/nav.tmpl2
-rw-r--r--templates/notification.tmpl2
-rw-r--r--templates/status.tmpl4
-rw-r--r--templates/user.tmpl2
4 files changed, 5 insertions, 5 deletions
diff --git a/templates/nav.tmpl b/templates/nav.tmpl
index f3db9f1..97898c8 100644
--- a/templates/nav.tmpl
+++ b/templates/nav.tmpl
@@ -8,7 +8,7 @@
</div>
<div class="user-info-details-container">
<div class="user-info-details-name">
- <span class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </span>
+ <bdi class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </bdi>
<a class="nav-link" href="/user/{{.User.ID}}" accesskey="0" title="User profile (0)">
<span class="status-uname"> @{{.User.Acct}} </span>
</a>
diff --git a/templates/notification.tmpl b/templates/notification.tmpl
index 10eaafc..3977aa7 100644
--- a/templates/notification.tmpl
+++ b/templates/notification.tmpl
@@ -27,7 +27,7 @@
</div>
<div class="notification-follow">
<div class="notification-info-text">
- <span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
+ <bdi class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </bdi>
<span class="notification-text"> followed you -
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time>
</span>
diff --git a/templates/status.tmpl b/templates/status.tmpl
index 4cdb459..6071b2f 100644
--- a/templates/status.tmpl
+++ b/templates/status.tmpl
@@ -5,7 +5,7 @@
<a class="img-link" href="/user/{{.Account.ID}}">
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" title="@{{.Account.Acct}}" alt="avatar" height="24" />
</a>
- <span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
+ <bdi class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </bdi>
<a href="/user/{{.Account.ID}}">
<span class="status-uname"> @{{.Account.Acct}} </span>
</a>
@@ -23,7 +23,7 @@
</div>
<div class="status">
<div class="status-name">
- <span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
+ <bdi class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </bdi>
<a href="/user/{{.Account.ID}}">
<span class="status-uname"> @{{.Account.Acct}} </span>
</a>
diff --git a/templates/user.tmpl b/templates/user.tmpl
index b7a12b9..b3461c6 100644
--- a/templates/user.tmpl
+++ b/templates/user.tmpl
@@ -11,7 +11,7 @@
</div>
<div class="user-profile-details-container">
<div>
- <span class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </span>
+ <bdi class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </bdi>
<span class="status-uname"> @{{.User.Acct}} </span>
<a class="remote-link" href="{{.User.URL}}" target="_blank" title="remote profile">
source