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; font-family: $font_3;
line-height: 1.4em; line-height: 1.4em;
pointer-events: all; pointer-events: all;
display: inline;
} }
.tweet-header { .tweet-header {

View file

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

View file

@ -59,7 +59,7 @@ proc renderUser(user: Profile; prefs: Prefs): VNode =
linkUser(user, class="fullname") linkUser(user, class="fullname")
linkUser(user, class="username") linkUser(user, class="username")
tdiv(class="tweet-content media-body"): tdiv(class="tweet-content media-body", dir="auto"):
verbatim replaceUrl(user.bio, prefs) verbatim replaceUrl(user.bio, prefs)
proc renderTimelineUsers*(results: Result[Profile]; prefs: Prefs; path=""): VNode = 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: if index == 0 and tweet.reply.len > 0:
renderReply(tweet) renderReply(tweet)
tdiv(class="tweet-content media-body"): tdiv(class="tweet-content media-body", dir="auto"):
verbatim replaceUrl(tweet.text, prefs) verbatim replaceUrl(tweet.text, prefs)
if tweet.quote.isSome: if tweet.quote.isSome: