asyncapi-react
asyncapi-react copied to clipboard
Sidebar stuck in overlay mode when page width is increased
Description
When opening the sidebar through the hamburger button on bottom right of the screen, and then increasing the width of the preview, sidebar is still drawn in the overlay mode.
Reproduced on Firefox 121 and Chromium 120.0.6099.216, Fedora 39.
Steps to reproduce
Paste the following into the playground:
Schema
{
"asyncapi": "3.0.0",
"info": {
"title": "Reproduction",
"version": "1.0.0"
},
"operations": {
"test": {
"action": "receive",
"channel": { "$ref": "#/channels/test" }
}
},
"channels": {
"test": {
"address": "/test",
"messages": {
"test": { "$ref": "#/components/messages/test" }
}
}
},
"components": {
"messages": {
"test": {
"payload": {
"type": "object",
"properties": {
"test": {
"description": "test",
"type": "string",
"pattern": "^(?:helloworld)+$"
}
},
"required": ["test"]
}
}
}
}
}
Configuration
{
"show": {
"sidebar": true,
"info": true,
"operations": true,
"servers": true,
"messages": true,
"schemas": true,
"errors": true
},
"expand":{
"messageExamples": false
},
"sidebar": {
"showServers": "byDefault",
"showOperations": "byDefault"
}
}
Click on the hamburger button. Increase width of the preview side of the screen.
Expected result
Overlay sidebar is closed, regular sidebar is drawn instead.
Actual result
Screencast from 2024-02-03 14-53-07.webm
Troubleshooting
N/A