aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/bootstrap.scss
diff options
context:
space:
mode:
authorkimsible <kimsible@users.noreply.github.com>2020-08-07 23:44:26 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-10 08:18:54 +0200
commit17384fd85636b9fe672ecb520ba6f2266483d4b1 (patch)
treee137fa42740a75cd91526e57de8e26511a8e04ea /client/src/sass/bootstrap.scss
parentb47d6282fb54db937fb03aa9cdd9e7cc242f00c4 (diff)
downloadPeerTube-17384fd85636b9fe672ecb520ba6f2266483d4b1.tar.gz
PeerTube-17384fd85636b9fe672ecb520ba6f2266483d4b1.tar.zst
PeerTube-17384fd85636b9fe672ecb520ba6f2266483d4b1.zip
Avoid lost scroll position when modal open
Diffstat (limited to 'client/src/sass/bootstrap.scss')
-rw-r--r--client/src/sass/bootstrap.scss3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss
index 2fce70c0d..308a28658 100644
--- a/client/src/sass/bootstrap.scss
+++ b/client/src/sass/bootstrap.scss
@@ -147,8 +147,7 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
147// On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close 147// On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close
148.modal-open { 148.modal-open {
149 overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect 149 overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect
150 position: fixed; // Fix the body position to disable any scroll content 150 width: 100vw; // Make sure the content fits all the available width
151 width: 100vw; // Make sure the content fits all the available width when position: fixed
152} 151}
153 152
154// Nav customizations 153// Nav customizations