mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
prevent scrolling while gallery is open +
firefox52/winxp: fix gridview margins
This commit is contained in:
parent
fbfdd8338b
commit
7f1c992601
|
@ -3142,7 +3142,7 @@ html.d #treepar {
|
||||||
margin-top: 1.7em;
|
margin-top: 1.7em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@supports (display: grid) {
|
@supports (display: grid) and (gap: 1em) {
|
||||||
#ggrid {
|
#ggrid {
|
||||||
display: grid;
|
display: grid;
|
||||||
margin: 0em 0.25em;
|
margin: 0em 0.25em;
|
||||||
|
|
|
@ -4882,6 +4882,7 @@ var thegrid = (function () {
|
||||||
duringHide: r.onhide,
|
duringHide: r.onhide,
|
||||||
afterShow: function () {
|
afterShow: function () {
|
||||||
r.bbox_opts.refocus = true;
|
r.bbox_opts.refocus = true;
|
||||||
|
document.body.style.overflow = 'hidden';
|
||||||
},
|
},
|
||||||
captions: function (g) {
|
captions: function (g) {
|
||||||
var idx = -1,
|
var idx = -1,
|
||||||
|
@ -4904,6 +4905,7 @@ var thegrid = (function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
r.onhide = function () {
|
r.onhide = function () {
|
||||||
|
document.body.style.overflow = '';
|
||||||
if (!thegrid.ihop)
|
if (!thegrid.ihop)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue