This commit is contained in:
2026-07-16 18:16:54 +02:00
parent fc237ab71a
commit 63837fe86f
2 changed files with 15 additions and 7 deletions

View File

@@ -4862,15 +4862,15 @@ body.layout-legacy.sidebar-right-hidden .embed-responsive-16by9::before {
}
@media
(-webkit-min-device-pixel-ratio: 1.39) and (-webkit-max-device-pixel-ratio: 1.55) and (min-width: 700px),
(min-resolution: 1.39dppx) and (max-resolution: 1.55dppx) and (min-width: 700px) {
(-webkit-min-device-pixel-ratio: 1.39) and (min-width: 700px),
(min-resolution: 1.39dppx) and (min-width: 700px) {
body.layout-legacy .embed-responsive-16by9::before {
padding-top: 36.25%;
padding-top: 41.25%;
}
body.layout-legacy.sidebar-right-hidden .embed-responsive-16by9::before {
padding-top: 36.25%;
padding-top: 41.25%;
}
}
@@ -4903,10 +4903,18 @@ html[data-dpr="dpr-130"] body.layout-legacy.sidebar-right-hidden .embed-responsi
/* ~139154% zoom (the 150% tier) */
html[data-dpr="dpr-150"] body.layout-legacy .embed-responsive-16by9::before {
padding-top: 36.25%;
padding-top: 41.25%;
}
html[data-dpr="dpr-150"] body.layout-legacy.sidebar-right-hidden .embed-responsive-16by9::before {
padding-top: 36.25%;
padding-top: 41.25%;
}
/* ≥155% zoom (high DPR — covers fractional scaling + zoom combos) */
html[data-dpr="dpr-high"] body.layout-legacy .embed-responsive-16by9::before {
padding-top: 41.25%;
}
html[data-dpr="dpr-high"] body.layout-legacy.sidebar-right-hidden .embed-responsive-16by9::before {
padding-top: 41.25%;
}
.embed-responsive-4by3::before {

View File

@@ -78,7 +78,7 @@
</head>
<body class="@if(session)@if(session.use_new_layout)layout-modern@else layout-legacy @endif@else @if(default_layout === 'legacy')layout-legacy@else layout-modern@endif @endif @if(private_society && !session)private-gate-active@endif">
<script>if(localStorage.getItem('sidebarRightHidden')==='true')document.body.classList.add('sidebar-right-hidden');if(localStorage.getItem('comments_hidden')==='true')document.body.classList.add('sidebar-left-hidden');</script>
<script>if(localStorage.getItem('sidebarRightHidden')==='true')document.body.classList.add('sidebar-right-hidden');if(localStorage.getItem('comments_hidden')==='true')document.body.classList.add('sidebar-left-hidden');(function(){var d=window.devicePixelRatio||1;console.log('[DPR] devicePixelRatio='+d);var t='dpr-1x';if(d>=1.55)t='dpr-high';else if(d>=1.39)t='dpr-150';else if(d>=1.26)t='dpr-130';else if(d>=1.20)t='dpr-120';else if(d>=1.05)t='dpr-110';document.documentElement.setAttribute('data-dpr',t);})();</script>
@if(!private_society || session)
<canvas class="hidden-xs" id="bg"></canvas>
@endif