# 外部链接图标不是RTL

**URL:** https://meta.discourse.org/t/external-link-icon-not-rtl/397432
**Category:** UX
**Tags:** featured-link, fixed, rtl
**Created:** [2026年三月2日 11:35 UTC](https://meta.discourse.org/t/external-link-icon-not-rtl/397432 "2026-03-02T11:35:07Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2026年四月1日 13:02 UTC](https://meta.discourse.org/t/external-link-icon-not-rtl/397432/2 "2026-04-01T13:02:35Z")

</div>

谢谢 @discojan，这将通过以下链接修复：

> <https://github.com/discourse/discourse/pull/39040>
>
> The external link icon (up-right-from-square) on topic featured links was not RT…L-aware in two ways:
> 
> 1. The icon itself wasn't mirrored — it pointed top-right in both LTR and RTL. Added it to the scaleX(-1) flip list in rtl.scss so it mirrors to top-left in RTL contexts.
> 
> 2. The icon's spacing used a physical \`margin-right\` which placed the gap on the wrong side in RTL. Switched to \`margin-inline-end\` so it respects text direction.
> 
> \*\*LTR\*\*
> 
> \<img width="374" height="221" alt="2026-04-01 @ 12 57 16" src="https://github.com/user-attachments/assets/d3ec17de-4fff-4305-bca5-dfaf36b6287c" /\>
> 
> \*\*RTL (before)\*\*
> 
> \<img width="353" height="201" alt="2026-04-01 @ 12 59 16" src="https://github.com/user-attachments/assets/ce39b733-8a99-4c14-a90f-cdfdd417a365" /\>
> 
> \*\*RTL (after)\*\*
> 
> \<img width="340" height="197" alt="2026-04-01 @ 12 58 23" src="https://github.com/user-attachments/assets/513e6848-7dfa-460f-adda-ef3c4ede2e08" /\>
> 
> 
> https://meta.discourse.org/t/397432

---

_[View the full topic](https://meta.discourse.org/t/external-link-icon-not-rtl/397432)._
