Topic Preview Modal

I’ve updated the timeline! :tada:

Now, when you click the progress bar, a dedicated modal opens with the topic timeline container (aka the mobile timeline). This makes it much easier to use on mobile too.


Sorry, but I’m not able to reproduce this. :confused:

2 Likes

I whacked the update on a test site https://forum.escooterworld.com/ and it happens on there, not sure why. Am on holiday till Tuesday so can’t really test further as to whats going on

1 Like

Can you send me your component so I can take a look at it?

1 Like

Sent, does the same though with that component turned off and has only started happening since last update

1 Like

Try testing in the Duck Duck Go browser :wink:

I’ve updated the swipe hint message: DEV: Add more control over swipe hint message - Pull Request #11 - VaperinaDEV/discourse-topic-preview-modal - GitHub

It contains two new settings:

  • always_show_dismiss_hint:
    By default the mobile dismiss-gesture hint (“Swipe up/down or use
    the back gesture/button to close”) is shown once ever per browser,
    the first time the preview modal opens. Enable this to show it every
    time instead. Only applies when modal_dismiss_gesture is “gesture”.

  • dismiss_hint_duration_ms:
    How long (in milliseconds) the dismiss-gesture hint stays on screen
    before fading out. Consider lowering this if you’ve enabled
    always_show_dismiss_hint, since a 10-second hint on every open can
    get repetitive. Set to -1 to disable the auto-dismiss entirely - the
    hint then stays until the modal itself is closed.

The topic_preview.back_gesture_hint is now htmlSafe.

4 Likes

Hi, I really appreciate this theme component; it works perfectly for me.

Today I noticed that in the (nested reply view) theme, clicking the “one other reply” button in the comments section shows the error: “Error: The requested URL or resource was not found.”

1 Like

Thanks for reporting this! I tested the nested reply view, but I wasn’t able to reproduce the issue. The reply loads correctly for me.

Could you check whether the same reply opens correctly on the regular nested topic page? If it doesn’t, it may be an issue with that particular post/topic.

If you see the issue again, please also send me the topic URL so I can investigate it further.

Hello,

When I click “:plus:2 replies” in the “Nested Replies” view,

I get the error message: “Error: The requested URL or resource was not found.”

I tested this in preview mode, on desktop Google Chrome, and on mobile Google Chrome, and the same error appears in all cases.

1 Like

Hi,

Sorry! I think I didn’t make myself clear.

What I meant to say is that when using the “topic-preview-modal” component, if you click on a topic in the “nested mode” view on the homepage to preview it, and then click the “more replies” button, the following error appears.

1 Like

Ah, got it, thanks! Here is the fix: FIX: Nested view lost topic identity on pagination + dead "Continue t… · VaperinaDEV/discourse-topic-preview-modal@fa90848 · GitHub

Thank you so much! I just tested it and there are no issues!

Thanks for your work on this theme component! :fonzie: