Support bidirectional text

Fixes #76
This commit is contained in:
Zed 2019-10-18 00:54:22 +02:00
parent d52769009b
commit ff359a3fc8
4 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,6 @@
font-family: $font_3;
line-height: 1.4em;
pointer-events: all;
display: inline;
}
.tweet-header {

View File

@ -25,7 +25,8 @@ proc renderProfileCard*(profile: Profile; prefs: Prefs): VNode =
tdiv(class="profile-card-extra"):
if profile.bio.len > 0:
tdiv(class="profile-bio"):
p: verbatim replaceUrl(profile.bio, prefs)
p(dir="auto"):
verbatim replaceUrl(profile.bio, prefs)
if profile.location.len > 0:
tdiv(class="profile-location"):

View File

@ -59,7 +59,7 @@ proc renderUser(user: Profile; prefs: Prefs): VNode =
linkUser(user, class="fullname")
linkUser(user, class="username")
tdiv(class="tweet-content media-body"):
tdiv(class="tweet-content media-body", dir="auto"):
verbatim replaceUrl(user.bio, prefs)
proc renderTimelineUsers*(results: Result[Profile]; prefs: Prefs; path=""): VNode =

View File

@ -247,7 +247,7 @@ proc renderTweet*(tweet: Tweet; prefs: Prefs; path: string; class="";
if index == 0 and tweet.reply.len > 0:
renderReply(tweet)
tdiv(class="tweet-content media-body"):
tdiv(class="tweet-content media-body", dir="auto"):
verbatim replaceUrl(tweet.text, prefs)
if tweet.quote.isSome: