Don
14 مايو 2021، 9:37م
1
مرحباً،
أشارككم هذا التصحيح البسيط لـ CSS الخاص بـ mfp، مخصصاً للهواتف المحمولة خاصة في عرض المعرض. مع هذا الـ CSS، سيتم تحريك الصورة فقط، بينما ستبقى الأسهم، زر الإغلاق، والعنوان ثابتة حتى عند التكبير والتحريك.
ضعوا هذا الكود في قسم CSS الخاص بالجوال.
تم تحديث هذا الكود
@media (max-width: 900px) {
.mfp-container {
position: fixed;
overflow: auto;
}
.mfp-force-scrollbars {
.mfp-figure {
overflow: auto;
}
}
}
إعجاب واحد (1)
Johani
(Joe)
21 مايو 2021، 1:20ص
5
ملاحظة ممتازة
أجريت تغييرًا صغيرًا في النواة بناءً على ذلك.
committed 01:18AM - 21 May 21 UTC
This commit fixes an issue where controls scroll in lightboxes with large images… (after zooming in)
Before:
https://d11a6trkgmumsb.cloudfront.net/original/3X/0/5/05024730b3b877c472dff5f4d63155121d370297.mp4
Notice how controls like the close button, the next and previous button, and the image metadata also scroll? This is an undesired behavior.
After:
https://d11a6trkgmumsb.cloudfront.net/original/3X/8/0/8047bab7351831e9b9df8c3cf0eb368c7529ae8a.mp4
This is the desired behavior; only the image should scroll.
The changes in this PR apply to both desktop and mobile.
شكرًا لك على الإبلاغ عن المشكلة وتقديم الإصلاح يا @Don
3 إعجابات