fix(ImageBox): fix next/prev image navigation

height: 100% only works if parent position is not static, without this property image navigation "buttons" were too long and were covering important butt*ns
This commit is contained in:
celestora 2024-01-08 14:07:27 +02:00 committed by GitHub
parent 64827402ee
commit c863e07908
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -235,7 +235,7 @@ function OpenMiniature(e, photo, post, photo_id, type = "post") {
<a id="ovk-photo-close">${tr("close")}</a> <a id="ovk-photo-close">${tr("close")}</a>
</div> </div>
</div> </div>
<center style="margin-bottom: 8pt;"> <center style="margin-bottom: 8pt; position: relative;">
<div class="ovk-photo-slide-left"></div> <div class="ovk-photo-slide-left"></div>
<div class="ovk-photo-slide-right"></div> <div class="ovk-photo-slide-right"></div>
<img src="${photo}" style="max-width: 100%; max-height: 60vh; user-select:none;" id="ovk-photo-img"> <img src="${photo}" style="max-width: 100%; max-height: 60vh; user-select:none;" id="ovk-photo-img">