Skip to content

Commit

Permalink
Merge pull request #148 from Automattic/fix/profile-url-trucation
Browse files Browse the repository at this point in the history
Fix Profile URL truncation on Firefox
  • Loading branch information
jcheringer authored Jan 8, 2025
2 parents 147d616 + c05cf41 commit a3c7919
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions web/packages/hovercards/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,11 @@ export default class Hovercards {
</a>
</div>
${
description &&
`<div class="gravatar-hovercard__body">
<p class="gravatar-hovercard__description">${ escHtml( description ) }</p>
</div>`
description
? `<div class="gravatar-hovercard__body">
<p class="gravatar-hovercard__description">${ escHtml( description ) }</p>
</div>`
: ''
}
<div class="gravatar-hovercard__social-links">
<a class="gravatar-hovercard__social-link" href="${ trackedProfileUrl }" target="_blank" data-service-name="gravatar">
Expand Down
2 changes: 2 additions & 0 deletions web/packages/hovercards/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ $font-sf-pro: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Robo

@include ellipsis(1);

/* Ensure consistent word-breaking across browsers. */
word-break: break-all;
color: $color-gray;
}

Expand Down

0 comments on commit a3c7919

Please sign in to comment.