Avoid lost scroll position when modal open

pull/3058/head
kimsible 2020-08-07 23:44:26 +02:00 committed by Chocobozzz
parent b47d6282fb
commit 17384fd856
1 changed files with 1 additions and 2 deletions

View File

@ -147,8 +147,7 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
// On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close // On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close
.modal-open { .modal-open {
overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect
position: fixed; // Fix the body position to disable any scroll content width: 100vw; // Make sure the content fits all the available width
width: 100vw; // Make sure the content fits all the available width when position: fixed
} }
// Nav customizations // Nav customizations