“您的主题与...相似”框的类为 hidden

The your topic is similar to… banner:

Has class="composer-popup hidden similar-topics ember-view"

This kind of clashes with an assumption that a dev on our side made, namely that everything with .hidden should be … hidden :slight_smile:

So he put a

.hidden { 
   display: none !important;
}

in the CSS somewhere.

Could be nice not to put class=hidden on things that should not be hidden :slight_smile:

Hmm not sure, perhaps @Johani could have a look… low priority.

Indeed, didn’t expect this to be a Prio 1 :wink:

这个问题在某个 bug 中提到了吗?

我目前正在运行 Discourse 2.6.0.beta2,但“相似主题”视图从未显示出来。

通过开发者工具检查发现,加载相似主题的请求已发出,并且 similar-topics div 已填充了内容。然而,它拥有 hidden 类,导致通过 helpers.scss 应用了 display:none !important;

因此,我的用户永远无法看到相似主题,从而导致这里那里出现重复的主题。

刚发现这个提交,它似乎导致了这个问题:FIX: Adds important declaration to `.hidden` utility/helper class · discourse/discourse@5a34c7c · GitHub

相关变更正在此处讨论:Guest Gate (Sign Up Popup Plugin) - #55 by michaeld

我也可以在 meta 上复现此问题,看来确实是一样的。

我认为这应该能解决问题:

我们正在等待内部审查。