fix: ensure last device and footer are visible in stacked preview mode on macOS (Fixes #1022)fix: ensure last device and footer are visible in stacked preview mode on macOS (Fixes #1022)fix: ensure last device and footer are visible in stacked preview mod… #1413
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🐛 Bug Description
In the Responsively App on macOS, when using the stacked preview mode (vertical device layout), the last device and footer elements are being cut off and not visible. This occurs because the flex containers don't properly handle scrolling in the stacked/column layout, causing content to extend beyond the viewport without scrollable access.
🔧 CSS Fix Applied
This pull request implements targeted CSS fixes to ensure proper scrolling behavior in stacked preview mode:
Changes Made:
overflow-y: auto
andmin-height: 100%
to.flex.flex-col .flex.flex-grow.overflow-hidden
to enable proper vertical scrolling.flex.flex-col .w-full.flex-grow.overflow-y-auto
withheight: 100%
to ensure the devices container has proper dimensions.flex.flex-col .flex.h-full.gap-4.overflow-auto.p-4.flex-wrap
to handle flex-wrap scenarios properlyprefers-reduced-motion
to ensure proper minimum height for the main container📋 Before/After Explanation
Before (Issue):
After (Fixed):
🧪 Testing
Tested on macOS with multiple device configurations in stacked preview mode to ensure:
Fixes #1022…e on macOS (#1022)Update App.css
✨ Pull Request
📓 Referenced Issue
ℹ️ About the PR
🖼️ Testing Scenarios / Screenshots