لإجراء هذه الخطوات:
استخدام شبكة لتغطية عمودين، وتعيين عرض هذين الصورتين يدويًا، كالتالي:
[grid]


[/grid]
(الحجم الأصلي لكل صورة هو 690*265)
السبب الجذري لهذا هو أن نسبة الصورة المصغرة تختلف اختلافًا كبيرًا عن نسبة الصورة بالحجم الكامل، وفشل الضوء الكاشف (lightbox) في التعامل مع ذلك، مما تسبب في وميض.
يمكن رؤية الخطأ من خلال النقر على الصورتين أدناه:
تم رفع طلب سحب (PR) هنا:
main ← small-lovely-cat:fix-lightbox-flicker-img-cropped
opened 04:28AM - 23 Jan 26 UTC
For these steps:
Using a grid to cover two posts, and manually set the width … of these two photos, like:
```
[grid]


[/grid]
```
(The original size of each image is 690*265)
The root cause of this is that the ratio of the thumbnail differs greatly from that of the full-sized image, and lightbox failed to handle that, causing a flicker.
This commit fix this by adding the logic: If thumbnail has different aspect ratio than full image, use the full image.
**Before:**
https://github.com/user-attachments/assets/4a83374e-3382-4223-82cf-75fa4d1a426f
**After:**
https://github.com/user-attachments/assets/797d7c76-395f-4cbf-a765-6eeb8909b11d
إعجاب واحد (1)