# Topic Preview Modal

**URL:** https://meta.discourse.org/t/topic-preview-modal/409712
**Category:** Theme component
**Created:** [August 10, 2026, 3:54pm UTC](https://meta.discourse.org/t/topic-preview-modal/409712 "2026-08-10T15:54:59Z")
**Posts on this page:** 1
**Showing post:** 39

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [August 27, 2026, 6:34am UTC](https://meta.discourse.org/t/topic-preview-modal/409712/39 "2026-08-27T06:34:00Z")

</div>

Hello 👋

I’ve been thinking about this a lot, and I added three configurable options:

- **None** : no additional dismiss gesture
- **Grip** : a visual grip is shown in the footer
- **Gesture** : the modal can be dismissed by swiping down when at the top, or swiping up when at the bottom. The native Back gesture/button also dismisses the modal on mobile.

I tried to make it work somewhat like Facebook’s comment modals.

The most interesting part is the native Back handling. Rather than navigating away from the underlying topic list, the modal consumes the Back action and closes itself, while keeping the user’s position in the list.

---

_[View the full topic](https://meta.discourse.org/t/topic-preview-modal/409712)._
