Restrict Permalink-Popup inside Viewport #3835

Open
opened 2026-02-05 07:37:44 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @demlak on GitHub (Jun 5, 2023).

Describe the Bug

When using the nice feature for getting Permalinks (shown in this video: https://www.bookstackapp.com/docs/user/content-permalinks/), the Popup is shown on Top of the Paragraph.. but sometimes, the top of the paragraph is not inside viewport (for example, when a paragraph is longer or when view is scrolled). So the popup is shown outside of viewport.

See video in this issue

Steps to Reproduce

scroll book-page.. mark words of a paragraph where the paragraph top is outside of viewport.

or see video in this issue

Expected Behaviour

Popup for Permalink is shown inside Viewport

Screenshots or Additional Context

https://github.com/BookStackApp/BookStack/assets/11285006/812a3fb9-1f93-483c-a1e7-af0d2ad81c70

Browser Details

Ungoogled Chromium 113, Firefox 113

Exact BookStack Version

v23.05.2

PHP Version

No response

Hosting Environment

Debian with Bookstack via Docker image: lscr.io/linuxserver/bookstack

Originally created by @demlak on GitHub (Jun 5, 2023). ### Describe the Bug When using the nice feature for getting Permalinks (shown in this video: https://www.bookstackapp.com/docs/user/content-permalinks/), the Popup is shown on Top of the Paragraph.. but sometimes, the top of the paragraph is not inside viewport (for example, when a paragraph is longer or when view is scrolled). So the popup is shown outside of viewport. See video in this issue ### Steps to Reproduce scroll book-page.. mark words of a paragraph where the paragraph top is outside of viewport. or see video in this issue ### Expected Behaviour Popup for Permalink is shown inside Viewport ### Screenshots or Additional Context https://github.com/BookStackApp/BookStack/assets/11285006/812a3fb9-1f93-483c-a1e7-af0d2ad81c70 ### Browser Details Ungoogled Chromium 113, Firefox 113 ### Exact BookStack Version v23.05.2 ### PHP Version _No response_ ### Hosting Environment Debian with Bookstack via Docker `image: lscr.io/linuxserver/bookstack`
OVERLORD added the 🐛 Bug label 2026-02-05 07:37:44 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3835