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 #549

Conversation

JonathanGardner
Copy link

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
Copy link
Collaborator

There was lint error, I made new PR with fix here #550
Will merge it soon, looks good, tested.

Really good addition!

@wonderwhy-er wonderwhy-er merged commit a8903ce into stackblitz-labs:main Dec 5, 2024
2 checks 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