-
Notifications
You must be signed in to change notification settings - Fork 307
Open
Description
Bug Description
When using sidebar: hide in page frontmatter, the sidebar appears unexpectedly on mobile devices when rotating from portrait to landscape orientation.
Steps to Reproduce
- Create a page with
sidebar: hidein the frontmatter - Open the deployed site on a mobile device in portrait orientation
- Verify the sidebar is hidden (expected behavior)
- Rotate the device to landscape orientation
- Observe that the sidebar appears despite
sidebar: hidesetting
Expected Behavior
The sidebar should remain hidden when sidebar: hide is set in frontmatter, regardless of device orientation or screen size changes.
Actual Behavior
The sidebar appears when rotating from portrait to landscape on mobile devices, overriding the sidebar: hide setting.
Environment
- Device: Mobile
- Deployment: Azure Static Web Apps (production build)
Example Configuration
Page frontmatter:
---
title: Status & Change Summary
sidebar: hide
---Workaround
Using the global hideSidebar={true} prop on EvidenceDefaultLayout appears to work more reliably, but this affects all pages rather than individual pages.
Additional Context
This appears to be a responsive breakpoint issue where the page-level sidebar: hide setting is overridden when the viewport width increases during orientation change.
Metadata
Metadata
Assignees
Labels
No labels