This commit is contained in:
Shikanime Deva 2026-04-11 07:02:40 +02:00 committed by GitHub
commit fde82b5b58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 40 additions and 14 deletions

View file

@ -3231,14 +3231,40 @@ html.d #treepar {
@media (max-width: 28em) {
#u2conf {
font-size: .8em;
}
}
@media (max-width: 32em) { @media (max-width: 32em) {
#u2conf { #u2conf {
font-size: .9em; font-size: .9em;
} }
} }
@media (max-width: 28em) { @media (max-width: 35em) {
#u2conf { #wrap {
font-size: .8em; flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overscroll-behavior-y: contain;
-webkit-overflow-scrolling: touch;
}
#wtoggle {
left: 0;
right: 0;
height: auto;
min-height: 1em;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
touch-action: pan-x;
scrollbar-gutter: stable;
border-radius: 0;
padding-left: 0;
padding-bottom: .35em;
}
#wtoggle>* {
flex: 0 0 auto;
} }
} }
@media (min-width: 70em) { @media (min-width: 70em) {

View file

@ -1779,7 +1779,7 @@ function MPlayer() {
continue; continue;
tid = tid.slice(1); tid = tid.slice(1);
if (r.tracks[tid]) if (r.tracks[tid])
order.push(tid); order.push(tid);
} }
r.order = order; r.order = order;
@ -6886,7 +6886,7 @@ function aligngriditems() {
if (((griditemcount * em2px) * gridsz) + totalgapwidth < gridwidth) { if (((griditemcount * em2px) * gridsz) + totalgapwidth < gridwidth) {
val = 'left'; val = 'left';
} else { } else {
val = treectl.hidden ? 'center' : 'space-between'; val = treectl.hidden ? 'center' : 'space-evenly';
} }
if (st.justifyContent != val) if (st.justifyContent != val)
st.justifyContent = val; st.justifyContent = val;
@ -9973,19 +9973,19 @@ function reload_browser() {
var selbox = null; var selbox = null;
var ttimer = null; var ttimer = null;
var lpdelay = 250; var lpdelay = 250;
var mvthresh = 44; var mvthresh = 44;
function unbox() { function unbox() {
qsr('.selbox'); qsr('.selbox');
ebi('gfiles').style.removeProperty('pointer-events') ebi('gfiles').style.removeProperty('pointer-events')
ebi('wrap').style.removeProperty('user-select') ebi('wrap').style.removeProperty('user-select')
if (selbox) { if (selbox) {
console.log(selbox) console.log(selbox)
window.getSelection().removeAllRanges(); window.getSelection().removeAllRanges();
} }
is_selma = false; is_selma = false;
dragging = false; dragging = false;
fwrap = null; fwrap = null;
@ -10028,7 +10028,7 @@ function reload_browser() {
starty = pos.y; starty = pos.y;
is_selma = true; is_selma = true;
ttimer = null; ttimer = null;
if (e.type === 'touchstart') { if (e.type === 'touchstart') {
ttimer = setTimeout(function() { ttimer = setTimeout(function() {
ttimer = null; ttimer = null;
@ -10036,7 +10036,7 @@ function reload_browser() {
}, lpdelay); }, lpdelay);
} }
} }
function start_drag() { function start_drag() {
if (dragging) return; if (dragging) return;
@ -10047,7 +10047,7 @@ function reload_browser() {
ebi('gfiles').style.pointerEvents = 'none'; ebi('gfiles').style.pointerEvents = 'none';
} }
function sel_move(e) { function sel_move(e) {
if (!is_selma) return; if (!is_selma) return;
var pos = getpp(e); var pos = getpp(e);
@ -10062,7 +10062,7 @@ function reload_browser() {
return; return;
} }
if (!dragging && dist > mvthresh && !window.getSelection().toString()) { if (!dragging && dist > mvthresh && !window.getSelection().toString()) {
if (fwrap = e.target.closest('#wrap')) if (fwrap = e.target.closest('#wrap'))
fwrap.style.userSelect = 'none'; fwrap.style.userSelect = 'none';
else return; else return;
start_drag(); start_drag();
@ -10110,7 +10110,7 @@ function reload_browser() {
} }
}); });
} }
dsel_init(); dsel_init();
})(); })();
@ -10153,7 +10153,7 @@ var mpss = (function() {
var gain = afilt.ssg.gain; var gain = afilt.ssg.gain;
var duration = ae.duration || 0; var duration = ae.duration || 0;
var slimit = duration * (config.sthresh / 100); var slimit = duration * (config.sthresh / 100);
var elimit = duration * (1 - (config.etresh / 100)); var elimit = duration * (1 - (config.etresh / 100));
var in_limits = ae.currentTime < slimit || ae.currentTime > elimit; var in_limits = ae.currentTime < slimit || ae.currentTime > elimit;