File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
public/js/lib/renderer/lightbox Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ function findOrCreateLightboxContainer () {
24
24
const hideContainer = ( e ) => {
25
25
e . stopPropagation ( )
26
26
lightBoxContainer . classList . remove ( 'show' )
27
+ document . body . classList . remove ( 'no-scroll' )
27
28
}
28
29
29
30
lightBoxContainer . querySelector ( '.lightbox-control-previous' ) . addEventListener ( 'click' , ( e ) => {
@@ -71,6 +72,7 @@ function onClickImage (img) {
71
72
setImageInner ( img , lightBoxContainer )
72
73
73
74
lightBoxContainer . classList . add ( 'show' )
75
+ document . body . classList . add ( 'no-scroll' )
74
76
75
77
currentImage = img
76
78
updateLightboxImages ( )
Original file line number Diff line number Diff line change 62
62
.markdown-body img .md-image {
63
63
cursor : zoom-in;
64
64
}
65
+
66
+ body .no-scroll {
67
+ overflow : hidden;
68
+ }
You can’t perform that action at this time.
0 commit comments