Allow RTL for text inside cards

This commit is contained in:
Lim Chee Aun 2023-09-23 12:58:12 +08:00
parent bd7e099f6e
commit a10e2804ba

View file

@ -1555,6 +1555,7 @@ function Card({ card, instance }) {
rel="nofollow noopener noreferrer" rel="nofollow noopener noreferrer"
class={`card link ${blurhashImage ? '' : size}`} class={`card link ${blurhashImage ? '' : size}`}
lang={language} lang={language}
dir="auto"
> >
<div class="card-image"> <div class="card-image">
<img <img
@ -1571,9 +1572,15 @@ function Card({ card, instance }) {
/> />
</div> </div>
<div class="meta-container"> <div class="meta-container">
<p class="meta domain">{domain}</p> <p class="meta domain" dir="auto">
<p class="title">{title}</p> {domain}
<p class="meta">{description || providerName || authorName}</p> </p>
<p class="title" dir="auto">
{title}
</p>
<p class="meta" dir="auto">
{description || providerName || authorName}
</p>
</div> </div>
</a> </a>
); );