0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Fixed link width in ActivityPub reader (#22798)

no ref

- Small fix to set the width of the link to original article in the
header of the ActivityPub reader
This commit is contained in:
Peter Zimon 2025-04-03 16:45:29 +02:00 committed by GitHub
parent 91a35a558d
commit d343cf4509
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -166,6 +166,7 @@ a:hover {
font-size: 1.5rem;
line-height: 1.2;
color: var(--color-secondary-text);
width: fit-content;
}
.gh-article-source:hover {

View file

@ -176,9 +176,9 @@ const ArticleBody: React.FC<{
<header class='gh-article-header gh-canvas'>
<h1 class='gh-article-title is-title' data-test-article-heading>${heading}</h1>
${excerpt ? `<p class='gh-article-excerpt'>${excerpt}</p>` : ''}
<a href="${postUrl}" target="_blank" rel="noopener noreferrer" class="gh-article-source">
<div><a href="${postUrl}" target="_blank" rel="noopener noreferrer" class="gh-article-source">
${postUrl ? new URL(postUrl).hostname : ''} <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-external-link-icon lucide-external-link"><path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/></svg>
</a>
</a></div>
${image ? `
<figure class='gh-article-image'>
<img src='${image}' alt='${heading}' />