Scrollable Post Content

:discourse2: Summary Scrollable Post Content will allow you to add scrollable sections in posts with one click!
:eyeglasses: Preview Preview on theme-creator.discourse.org
After clicking “view theme” navigate to the “Scrollable post content” topic in the General category
: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

Samples

Desktop

Mobile

Composer button

Settings

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.

Translations

The component comes with one string that you can translate.

insert_scrollable_content: Insert scrollable content

This acts as the label for the 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.

Either way works so it’s up to you.

53 Likes

Added the broken tag (issue reported here Topic toolbar popup menu does not show).

The component requires some updates to work on the latest Discourse version.

EDIT: Also, it’s archived on GitHub

4 Likes

Ok I just un-archived it. :slight_smile:

3 Likes

But why? The last commit was five years ago. It can’t work, and it was probably archived for a reason.

I believe it was working until recently and had been archived possibly a little too prematurely as part of an overly enthusiastic clear-up back in 2021. I think it just hadn’t needed anything updating since. :person_shrugging: (until now, at least).

But we’ll see, I suppose. :slight_smile:

3 Likes

Actually, the bigger problem, institutionally, is that someone archived it but left it marked as “official”. (But I’m not part of the institution, so I may be wrong!)

1 Like

That was certainly part of the knot I was trying to untangle. :slight_smile: But if we can get it working again then it should all be peachy. :slight_smile: :crossed_fingers:

(And if not, I can retire it properly)

4 Likes

Here we go, I made a PR to fix the component: :+1:

2 Likes