Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Fullscreen and Resizing to Preview #550

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

wonderwhy-er
Copy link
Collaborator

Based on #549 with lint fix
In this PR, I have introduced two key enhancements to the preview functionality:

  1. Fullscreen Functionality:
    A fullscreen toggle button has been added, allowing users to enter and exit fullscreen mode seamlessly. This feature provides a more immersive environment for previewing content without distractions.

  2. Responsive Mode with Resizable Width:
    Users can now switch between a responsive mode, where the preview fills the entire available space, and a device mode, where the preview is constrained to a fixed width. In device mode, two vertical handles on the left and right edges allow the user to interactively resize the preview's width, similar to the responsive mode in browser dev tools. The height remains full, ensuring a consistent vertical display.

Screenshots:

Buttons
image

Fullscreen mode:
image

Responsive mode:
image

@wonderwhy-er wonderwhy-er merged commit a0eb0a0 into stackblitz-labs:main Dec 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants