# 主题在从右到左的语言中已损坏，即使在 meta 中也是如此

**URL:** https://meta.discourse.org/t/the-theme-is-broken-in-right-to-left-languages-even-in-meta/233908
**Category:** Bug
**Created:** [2022年七月25日 17:21 UTC](https://meta.discourse.org/t/the-theme-is-broken-in-right-to-left-languages-even-in-meta/233908 "2022-07-25T17:21:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [2022年七月25日 17:21 UTC](https://meta.discourse.org/t/the-theme-is-broken-in-right-to-left-languages-even-in-meta/233908/1 "2022-07-25T17:21:33Z")

</div>

您可以查看我的 Composer 快照，例如，当我将 Discourse 的 **默认界面语言更改为波斯语** 时：

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/e/3/4e361bc294e6f64238167f2209dabcf77461b669.png)

有很多问题出现了，比如主题页面、使用简单主题时的主页等。

我不确定这是 #Contribute > Bug 还是 #Contribute > UX 问题。

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2022年七月25日 17:32 UTC](https://meta.discourse.org/t/the-theme-is-broken-in-right-to-left-languages-even-in-meta/233908/2 "2022-07-25T17:32:46Z")

</div>

感谢告知！我将把这个问题归类为 bug……看起来是缺少了一些 CSS。

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [2022年七月25日 19:50 UTC](https://meta.discourse.org/t/the-theme-is-broken-in-right-to-left-languages-even-in-meta/233908/4 "2022-07-25T19:50:58Z")

</div>

欢迎回来，感谢您报告问题 @Pad_Pors 👍

应该通过以下方式修复：

> <https://github.com/discourse/discourse/pull/17650>
>
> Context: https://meta.discourse.org/t/the-theme-is-broken-in-right-to-left-langu…ages-even-in-meta/233908
> 
> We use the R2 gem to do the magic RTL CSS conversion. There are cases where we feed it too much, and it gets confused. The issue here is that we use a linear gradient with CSS variables, an RGBA function, and we set the stops. 
> 
> This makes R2 choke and causes it to return jumbled CSS, which means that any CSS that comes after that rule is junk and doesn't apply.
> 
> This PR removes the stops from the gradient. This shouldn't cause any visual changes since these are the default stops.
> 
> More explanation of the issue here: https://meta.discourse.org/t/user-card-will-not-open-on-the-mobile/171268/6?u=johani

并且修复已在 Meta 上线。

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [2022年七月26日 05:18 UTC](https://meta.discourse.org/t/the-theme-is-broken-in-right-to-left-languages-even-in-meta/233908/5 "2022-07-26T05:18:48Z")

</div>

谢谢你一如既往的快速修复 😊

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [2022年七月27日 00:00 UTC](https://meta.discourse.org/t/the-theme-is-broken-in-right-to-left-languages-even-in-meta/233908/6 "2022-07-27T00:00:39Z")

</div>

此主题已在 28 小时后自动关闭。不再允许回复。
