Skip to content

fix: prevent external link icon from wrapping#1682

Open
Dugowitch wants to merge 1 commit into
RedHatInsights:masterfrom
Dugowitch:fix-wrapping
Open

fix: prevent external link icon from wrapping#1682
Dugowitch wants to merge 1 commit into
RedHatInsights:masterfrom
Dugowitch:fix-wrapping

Conversation

@Dugowitch

@Dugowitch Dugowitch commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Description

Associated Jira ticket: HMS-10988

This commit fixes the issue that when the text is just the right length the external link icon would wrap onto a new line and be there alone. The added zero-width joiner will ensure no wrapping just before it and the span with no-wrap class glues the joiner with the icon, therefore the text can wrap but the icon will always have at least one word with it on the same line.

How to test the PR

Please include steps to test your PR.

Before the change

Screenshot From 2026-07-10 18-38-15

After the change

Screenshot From 2026-07-10 18-39-39

Checklist:

  • The commit message has the Jira ticket linked
  • PR has a short description
  • Screenshots before and after the change are added
  • Tests for the changes have been added
  • README.md is updated if necessary
  • Needs additional dependent work

HMS-10988

This commit fixes the issue that when the text is just the right length
the external link icon would wrap onto a new line and be there alone.
The added zero-width joiner will ensure no wrapping just before it and
the span with no-wrap class glues the joiner with the icon, therefore
the text can wrap but the icon will always have at least one word with
it on the same line.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.27%. Comparing base (e99faff) to head (d14f2da).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1682   +/-   ##
=======================================
  Coverage   77.27%   77.27%           
=======================================
  Files         103      103           
  Lines        3287     3287           
  Branches      740      741    +1     
=======================================
  Hits         2540     2540           
  Misses        668      668           
  Partials       79       79           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Dugowitch Dugowitch marked this pull request as ready for review July 10, 2026 17:05
@Dugowitch Dugowitch requested a review from a team as a code owner July 10, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants