Don
1
你好,
我注意到这些插件中的 user-stream-item 模板需要更新(也许还有其他插件)……以适应核心的更改。
Discourse Follow 插件
https://github.com/discourse/discourse-follow/blob/main/assets/javascripts/discourse/templates/components/follow-feed-post.hbs
Discourse Reactions 插件
https://github.com/discourse/discourse-reactions/blob/main/assets/javascripts/discourse/components/discourse-reactions-reaction-post.hbs
现在看起来是这样的 
这是预期的 
几个月前对核心 user-stream-item 模板进行了一次修复,该修复更改了元素的顺序并添加了一些新类。
谢谢 
3 个赞
Don
2
如果有人需要一个快速的解决方法,我做了一些 CSS 修改,将这些元素放到正确的位置。
Common > CSS
.user-stream {
.item,
.user-stream-item {
// 添加排除项影响不大
// 除非它不会将这些添加到当前核心样式中
.info:not(.user-stream-item__header) {
display: flex;
align-items: flex-start;
.stream-topic-details {
order: 1;
flex-grow: 1;
}
.expand-item,
.collapse-item {
order: 2;
}
.time {
order: 3;
}
}
}
}
1 个赞
david
(David Taylor)
9
4 个赞