Viewport constraint (max-height) for GitBook Embeds

I am experiencing usability issues with the Supademo integration in GitBook. When embedding vertical or tall demos, the iframe height often exceeds the user's viewport height. Consequently, parts of the demo are cut off or require excessive scrolling, disrupting the user experience.

Proposed Solution: Please implement a responsive CSS rule for GitBook embeds that constrains the container height (e.g., max-height: 90vh or 100vh) and ensures the aspect ratio is maintained within the visible screen area.

Impact: This would significantly improve readability and flow for documentation readers on smaller screens or laptops.

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board

πŸ’‘ Feature Request

Date

3 months ago

Author

Elmer Slot

Subscribe to post

Get notified by email when there are changes.