Project

General

Profile

Actions

Feature #44691

closed

Replace the external link icon with the Tabler "external-link" icon

Feature #44691: Replace the external link icon with the Tabler "external-link" icon

Added by Go MAEDA 20 days ago. Updated 16 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
Resolution:
Fixed

Description

The icon that marks external links in formatted text is still a legacy 9x9 PNG image (external.png). It looks blurry on high-DPI displays and does not scale with the font size.

The attached patch replaces it with the "external-link" icon from Tabler Icons, which Redmine already uses for its other icons. The icon is an SVG image applied as a CSS mask, so it stays sharp and scales with the font size.

Changes:

  • The icon is gray so that it is not read as part of the link text.
  • The icon is placed after the link text instead of before it, because its arrow points outward. This is also the common convention on sites such as Wikipedia and MDN Web Docs.
  • A line break never separates the icon from the link text or from the punctuation that follows it.
  • In right-to-left layouts, a mirrored icon is used so that the arrow still points outward.

Before:

After:


Files

Updated by Go MAEDA 17 days ago Actions #1

  • Target version changed from Candidate for next major release to 7.1.0

Setting the target version to 7.1.0.

Updated by Go MAEDA 16 days ago Actions #2

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed in r25413 with the following changes to the attached patch:

  • Changed the CSS mask size to 100% to remove thin gray lines that appeared above and below the icon in Safari.
  • Added a word joiner (U+2060) to the generated content to prevent the icon from overflowing its container when a long URL wraps in Chromium-based browsers.

As a result, the icon can move to the next line on its own when a long URL has to be broken to fit.

Actions

Also available in: PDF Atom