# 主题列表预览（TLP）

**URL:** https://meta.discourse.org/t/topic-list-previews-tlp/209973
**Category:** Theme component
**Created:** [2021 年11 月 23 日 12:25 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973 "2021-11-23T12:25:59Z")
**Posts on this page:** 20
**Page:** 25

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年1 月 7 日 23:07 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/489 "2025-01-07T23:07:38Z")

</div>

暂时将此标记为#broken。

我不确定何时会着手调查此事。

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2025 年1 月 7 日 23:15 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/490 "2025-01-07T23:15:05Z")

</div>

是 #Customization > Theme component 出了问题，还是 #Customization > Plugin 出了问题？

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [2025 年1 月 7 日 23:22 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/491 "2025-01-07T23:22:26Z")

</div>

该组件效果非常好。对我来说，无论如何。是边车坏了。

我的错。我忘了提一下。

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年1 月 7 日 23:26 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/492 "2025-01-07T23:26:37Z")

</div>

这与重建 rmagick gem 有关。

在线重建似乎有效。

供参考，无论如何，由于主题列表的更改，此主题组件即将需要进行大规模重构。我不能保证届时能准备好，但我会尝试，因为我自己也在使用它。

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年1 月 8 日 11:10 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/493 "2025-01-08T11:10:44Z")

</div>

@Jagster 在线更新绝对有效……完全不知道为什么，也许是 gem 被缓存了？

如果需要，请重启你的容器并执行在线更新。

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年1 月 8 日 11:26 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/494 "2025-01-08T11:26:00Z")

</div>

参见：

> [@Online update succeeds, but rebuild fails](https://meta.discourse.org/t/online-update-succeeds-but-rebuild-fails/346158?u=merefield):
>
> Came across a curious issue which may highlight another difference between online updates and command line updates. If I perform an online update with a plugin with the [rmagick gem](https://github.com/rmagick/rmagick), it succeeds. However, it fails with a cli rebuild with: ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. current directory: /var/www/discourse/plugins/discourse-topic-previews-sidecar/gems/3.3.6/gems/rmagick-6.0.1/ext/RMagick /usr/local/bin/ruby extconf.rb checking for brew... n…

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [2025 年1 月 8 日 12:01 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/495 "2025-01-08T12:01:16Z")

</div>

我没有真正需要进行升级的理由，所以启动应用程序就完成了。老实说……在我的情况下，我不确定我是否真的需要 sidecar。

但很高兴知道。

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年1 月 8 日 12:07 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/496 "2025-01-08T12:07:33Z")

</div>

它主要用于 YouTube 缩略图、主题列表操作……以及当前的占主导地位的颜色。

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [2025 年1 月 8 日 12:28 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/497 "2025-01-08T12:28:27Z")

</div>

是的，就是那样……所有那些不需要任何喜爱和关怀的插件，过了一会儿我甚至都不记得为什么还在用 😂

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年1 月 10 日 18:36 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/498 "2025-01-10T18:36:14Z")

</div>

如果有人想尝试，他们很受欢迎，我还没有机会尝试：

> [@Online update succeeds, but rebuild fails](https://meta.discourse.org/t/online-update-succeeds-but-rebuild-fails/346158/6?u=merefield):
>
> You can do something like pull in the gem’s compile-time dependencies - something like the following: hooks: after\_code: - exec: apt-get update && apt-get install -y libmagickwand-dev we aren’t blocking anything from being installed, we are just no longer including the static libs that the gem is dependent on in the base image.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年1 月 21 日 09:11 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/499 "2025-01-21T09:11:56Z")

</div>

已修复（插件重建），因为已移除对 rmagick gem 的依赖，并且插件已重构以适应。

> <https://github.com/merefield/discourse-topic-previews-sidecar/pull/175>
>
> \* Enables autoloading of modules and better aligns with standards.
> \* Removes re…liance on \`rmagic\` gem which was preventing a rebuild after changes in core removed the required build dependencies

请注意，要解决主题组件的弃用问题仍有大量工作要做，部分原因在于等待 David 扩展核心中的新主题列表 API。

> [@Modifying style attribute dynamically on Topic List Item](https://meta.discourse.org/t/modifying-style-attribute-dynamically-on-topic-list-item/346415/7?u=merefield):
>
> modifyClass itself is not deprecated. It’s a risky customization method, and you should take precautions when using it (as described in the doc @don linked), but we don’t have any imminent plans to remove it. The reason we’re printing a deprecation message for component:topic-list and component:topic-list-items is that those components are the legacy implementation of the topic list, and are not used when the glimmer topic list is enabled. Now, we have a set of glimmer components like component…

目前我已移除 #broken 标签。

---

<div class="post-metadata">

### Author: ![Ahmed26](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ahmed26/32/347069_2.png) [@Ahmed26](https://meta.discourse.org/u/Ahmed26)
#### Post date: [2025 年1 月 26 日 10:16 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/500 "2025-01-26T10:16:43Z")

</div>

你好 Robert @merefield

如何删除主题摘要描述？  
我安装了 sidecar 插件，虽然将其值设置为零，但即使只有一个字母，它也会显示出来。

 ![图片显示了关于 Giannis Antetokounmpo 和 LeBron James 的带有图片和文字的标题，重点介绍了他们的表现和各种测试内容主题。（由 AI 标注）](https://global.discourse-cdn.com/meta/original/4X/5/6/0/560f08bf8dc26bce4677932e57f0da992d923cf2.png)

 ![图片显示了移动应用程序上的帖子列表，其中包含关于 Giannis Antetokounmpo 和 LeBron James 的文章，两者都被标记为“General”并被确定为要探索的主题，每个主题都有一个箭头指向。（由 AI 标注）](https://global.discourse-cdn.com/meta/original/4X/8/3/0/8306d3923216ad9f019f6c66104a5602da15aad5.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年1 月 26 日 10:22 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/501 "2025-01-26T10:22:42Z")

</div>

从您的设置中移除“摘要”？

---

<div class="post-metadata">

### Author: ![Ahmed26](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ahmed26/32/347069_2.png) [@Ahmed26](https://meta.discourse.org/u/Ahmed26)
#### Post date: [2025 年1 月 26 日 10:24 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/502 "2025-01-26T10:24:58Z")

</div>

> [@merefield](#):
>
> 是否要从您的设置中删除“引用”？

是的，我想删除

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年1 月 26 日 10:25 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/503 "2025-01-26T10:25:55Z")

</div>

那就这样做吧 🙂

---

<div class="post-metadata">

### Author: ![Ahmed26](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ahmed26/32/347069_2.png) [@Ahmed26](https://meta.discourse.org/u/Ahmed26)
#### Post date: [2025 年1 月 26 日 10:34 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/504 "2025-01-26T10:34:00Z")

</div>

> [@merefield](#):
>
> 摘录

🙂 我删除了它，但字符仍然出现

 ![The image shows a configuration interface for setting excerpt lengths and options for topic description management on a desktop view. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/9/c/8/9c8ec121cb8dfe5b58e2ccb8a2cd36a75344bb89.png)  
 ![The image shows social media posts featuring basketball players Giannis Antetokounmpo and LeBron James, each with a heading under the "General" category and an empty comment section. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/4/4/f/44f81ab9b3102b810b1f0612db196e171c180dc7.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年1 月 26 日 10:41 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/505 "2025-01-26T10:41:22Z")

</div>

设置错误。再往上一点。 🙂

 ![该图片显示了 Starzen 应用界面中的主题类别列表，包括“最新”、“新”、“未读”、“热门”及其移动版本，“标签”和“推荐”也出现在其中。（由 AI 题注）](https://global.discourse-cdn.com/meta/original/4X/b/1/3/b1340f78149b88ef4803de35a64a36b8ff1f31e3.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2025 年1 月 26 日 10:45 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/506 "2025-01-26T10:45:22Z")

</div>

顺便说一句，你也可以使用这个：

> [@Discourse AI Topic Summary robot](https://meta.discourse.org/t/discourse-ai-topic-summary/256711/131?u=merefield):
>
> Topic AI Summary can display its AI summaries on the Topic List via Excerpts on most of the Discovery lists as per the OP. I’ve now built a small Theme Component that will allow you to toggle Excerpts (on or off) and you can set the default (on or off). It respects Pinned. You can use it without this plugin. It works with Topic List Previews and the official Topic List Excerpts Theme Component. Credit to Discourse Team for the idea. Made sense to implement it here and is a slightly diff…

---

<div class="post-metadata">

### Author: ![Ahmed26](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ahmed26/32/347069_2.png) [@Ahmed26](https://meta.discourse.org/u/Ahmed26)
#### Post date: [2025 年1 月 26 日 10:53 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/507 "2025-01-26T10:53:42Z")

</div>

感谢您分享如此精美的组件

解决了我的问题

---

<div class="post-metadata">

### Author: ![Ahmed26](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ahmed26/32/347069_2.png) [@Ahmed26](https://meta.discourse.org/u/Ahmed26)
#### Post date: [2025 年1 月 29 日 06:48 UTC](https://meta.discourse.org/t/topic-list-previews-tlp/209973/508 "2025-01-29T06:48:35Z")

</div>

缩小列表视图中的缩略图大小时，图像会失真。  
在移动视图中看起来非常清晰。  
是否有设置可以使缩略图更清晰？

 ![图像展示了两个篮球视频集锦；上面的视频是 2025 年 1 月 28 日金州勇士队对阵爵士队的比赛，下面的视频是 TNT 团队在湖人队对阵 76 人队的比赛后对奥尼尔的赛后反应。（由 AI 题注）](https://global.discourse-cdn.com/meta/original/4X/6/1/3/613bec658c9c3c9c9eb6986819f2054fbd710522.png)

[Previous page](https://meta.discourse.org/t/topic-list-previews-tlp/209973.md?page=24)

[Next page](https://meta.discourse.org/t/topic-list-previews-tlp/209973.md?page=26)
