Merge pull request #461 from Vinnl/ellipsis-tooltip

Add tooltip for truncated preview text
This commit is contained in:
Chee Aun 2024-03-16 13:33:28 +08:00 committed by GitHub
commit d1965a84b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2232,10 +2232,10 @@ function Card({ card, selfReferential, instance }) {
<p class="meta domain" dir="auto">
{domain}
</p>
<p class="title" dir="auto">
<p class="title" dir="auto" title={title}>
{title}
</p>
<p class="meta" dir="auto">
<p class="meta" dir="auto" title={description}>
{description ||
(!!publishedAt && (
<RelativeTime datetime={publishedAt} format="micro" />
@ -2304,8 +2304,8 @@ function Card({ card, selfReferential, instance }) {
<p class="meta domain">
<Icon icon="link" size="s" /> <span>{domain}</span>
</p>
<p class="title">{title}</p>
<p class="meta">{description || providerName || authorName}</p>
<p class="title" title={title}>{title}</p>
<p class="meta" title={description || providerName || authorName}>{description || providerName || authorName}</p>
</div>
</a>
);