可滚动的帖子内容

:discourse2: Summary Scrollable Post Content will allow you to add scrollable sections in posts with one click!
:eyeglasses: Preview Preview on Discourse Theme Creator
:hammer_and_wrench: Repository Link https://github.com/discourse/Scrollable-post-content
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Features

Desktop

Mobile

Composer button

How do I use it?

There are two ways to add scrollable content.

  1. highlight the content you want to target, then click the button in the composer.
  2. click the composer button and start typing / paste content.

Settings

Name Description
scrollable content height Set the desired height for scollable content in pixles - e.g 300 - Units are not needed.
scrollable content button icon Choose the icon for the scrollable content button in the composer

This theme comes with two settings:

  1. Content height

    this allows you to set the desired height of the scrollable content in pixels. It defaults to 300. If you want to change it, just add a number, no need for units.

  2. Scrollable content button icon

    this allows you to set the icon used for the scrollable content button in the composer.

Translation Default
insert_scrollable_content Insert scrollable content

:discourse2: Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.

Last edited by @Moin 2024-12-08T23:42:05Z

Check documentPerform check on document:
54 个赞

添加了 broken 标签(问题报告在此 https://meta.discourse.org/t/topic-toolbar-popup-menu-does-not-show/304342)。

该组件需要一些更新才能在最新的 Discourse 版本上运行。

编辑:它也已在 GitHub 上存档

4 个赞

好的,我刚刚取消了存档。:slight_smile:

3 个赞

但是为什么?上次提交是在五年前。它不可能正常工作,而且很可能是因为某个原因被归档了。

我相信它最近还能正常工作,并且可能在 2021 年的一次过于热情的清理活动中被过早地归档了。我想它只是在那之前一直不需要任何更新。:person_shrugging: (至少直到现在)。

不过,我想我们拭目以待吧。:slight_smile:

3 个赞

实际上,更大的问题在于,有人将其存档但仍标记为“官方”。(但我不是该机构的一员,所以可能说错了!)

1 个赞

这当然是我试图解开的难题的一部分。 :slight_smile: 但如果我们能让它再次运行,那一切都会好起来的。 :slight_smile: :crossed_fingers:

(如果不行,我也可以好好地让它退休了)

5 个赞

好了,我创建了一个 PR 来修复这个组件 :+1:

6 个赞

PR 已合并。

我已删除 broken 标签。 :+1:

4 个赞