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: hide in 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: hide setting
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.
Bug Description
When using
sidebar: hidein page frontmatter, the sidebar appears unexpectedly on mobile devices when rotating from portrait to landscape orientation.Steps to Reproduce
sidebar: hidein the frontmattersidebar: hidesettingExpected Behavior
The sidebar should remain hidden when
sidebar: hideis 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: hidesetting.Environment
Example Configuration
Page frontmatter:
Workaround
Using the global
hideSidebar={true}prop onEvidenceDefaultLayoutappears 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: hidesetting is overridden when the viewport width increases during orientation change.