🐛 Fix page alignment when opening hamburger menu

Fixes #445
pull/452/head
James Panther 2023-01-20 09:06:19 +11:00
parent 83d6634616
commit f386bc85bd
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
3 changed files with 7 additions and 3 deletions

View File

@ -12,6 +12,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Updated Traditional Chinese (Taiwan) translation ([#448](https://github.com/jpanther/congo/pull/448)) - Updated Traditional Chinese (Taiwan) translation ([#448](https://github.com/jpanther/congo/pull/448))
- Upgrade to Chart.js v4.2.0 ([#449](https://github.com/jpanther/congo/pull/449)) - Upgrade to Chart.js v4.2.0 ([#449](https://github.com/jpanther/congo/pull/449))
### Fixed
- Page alignment off-centre when opening hamburger menu at wide viewports ([#445](https://github.com/jpanther/congo/issues/445))
## [2.5.0] - 2023-01-17 ## [2.5.0] - 2023-01-17
### Added ### Added

View File

@ -1020,8 +1020,8 @@ body button {
/* Hamburger menu */ /* Hamburger menu */
body:has(#menu-controller:checked) { body:has(#menu-controller:checked) {
position: fixed; height: 100vh;
overflow-y: hidden; overflow: hidden;
} }
#menu-button:has(#menu-controller:checked) { #menu-button:has(#menu-controller:checked) {

View File

@ -23,7 +23,7 @@ body button {
/* Hamburger menu */ /* Hamburger menu */
body:has(#menu-controller:checked) { body:has(#menu-controller:checked) {
@apply fixed overflow-y-hidden; @apply h-screen overflow-hidden;
} }
#menu-button:has(#menu-controller:checked) { #menu-button:has(#menu-controller:checked) {
@apply invisible; @apply invisible;