Skip to content

Commit

Permalink
Detect rtl in insta, twitter, wikipedia
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jan 16, 2024
1 parent b499927 commit 6388ffc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>
<div class='comments'>
<div class='username'>{{item.username}}</div>
<div class='comment'>{{item.content}}</div>
<div class='comment' [rtlDetect]='item.content'>{{item.content}}</div>
</div>
<div class='footer'>
<img class='logo' src='assets/img/spectours-ig-logo.svg'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
<img class='twitter-logo' src='assets/img/spectours-twitter-logo.svg'>
</div>
<div class='caption' [innerHtml]='marked(item.content)'></div>
<div class='caption' [innerHtml]='marked(item.content)' [rtlDetect]='item.content'></div>
<div *ngIf='!item.link_title && item.image' class='image' [style.background-image]='"url(" + item.image + ")"'></div>
<div *ngIf='item.link_title' class='link'>
<div *ngIf='item.image' class='link-image' [style.background-image]='"url(" + item.image + ")"'></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h2>From Wikipedia, the free encyclopedia</h2>
</div>
<div class='content'>
<div class='text'>
<div class='excerpt' [innerHtml]='marked(item.content)'></div>
<div class='excerpt' [innerHtml]='marked(item.content)' [rtlDetect]='item.content'></div>
</div>
<div *ngIf='item.image && item.image.length' class='image' [style.background-image]='"url(" + item.image + ")"'></div>
<div class='bottom'>
Expand Down

0 comments on commit 6388ffc

Please sign in to comment.