opencaching / opencaching-pl

The source code of Opencaching.PL (and some other domains)
https://opencaching.pl/
GNU General Public License v3.0
22 stars 33 forks source link

Picure in a log entry can destroy opencaching layout #2393

Open mzylowski opened 1 year ago

mzylowski commented 1 year ago

We had an issue reported via e-mail about broken view of a cache. See screenshot:

Zrzut ekranu 2023-08-02 201020

Problem was caused by adding image to log entry in a some interesting way: Screenshot_45 Problem seems to be in fancybox-image class, because link to image seems to be totally normal (and small dimentions too): https://opencaching.pl/upload/30B0F0AA-92BD-AB78-9657-7FCFB200ABC5.png

bartsman commented 1 year ago

It can also be done faster and easier

css/style_screen.css div.viewcache_log-content img{ position: relative; max-height: 500px; } This won't break the fancybox and will limit the height of all weird pictures in the logs