Fix viewport pushed by switching chats #445
Merged
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.
This fixes #442
Just re-read my blog post for the solution
https://dev.to/amnish04/no-backing-away-when-hacking-away-2h27
When the page is loaded and the options menu is never opened, the menu list is overflowing below the visible page, effectively creating hidden scrollbars.
![image](https://private-user-images.githubusercontent.com/78865303/304276665-34d92008-4fc2-4660-a3c6-24ce94b76ada.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NTk1MjQsIm5iZiI6MTcxOTc1OTIyNCwicGF0aCI6Ii83ODg2NTMwMy8zMDQyNzY2NjUtMzRkOTIwMDgtNGZjMi00NjYwLWEzYzYtMjRjZTk0Yjc2YWRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDE0NTM0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ1YWJkOWUzZGMyZTc2MjJlZWY2MTc5OTZhYWY5NTJlMmU4NzQyYzk5MWFkMjBhNWNjNjlmMjkyZTVlMTE2ODgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1MtpgDsxYKsOy2f3N6S_hdYSrV5y_4USDlJDmWMZ1tU)
The view is fixed when you open the menu at least once
![image](https://private-user-images.githubusercontent.com/78865303/304277182-7b34f626-fa88-4070-a8af-d3a1f84dfbc6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NTk1MjQsIm5iZiI6MTcxOTc1OTIyNCwicGF0aCI6Ii83ODg2NTMwMy8zMDQyNzcxODItN2IzNGY2MjYtZmE4OC00MDcwLWE4YWYtZDNhMWY4NGRmYmM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDE0NTM0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3YjJlMWRiZTlkYzVhZjdhZjUyYTVkMzE1YmI2ODAwN2NjOWU5YzQ2ZDM1MDcwMmY2ZDhjODcxMTMyMjJmNmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.bqh8n7v9apNq7ZmW8vVrmnzZZJMaKOUtuW8Bx1fkxNE)
But setting the position to fixed eliminates the issue altogether