mirror of
https://github.com/pretix/pretix.git
synced 2026-09-12 16:04:42 +00:00
Product pictures: fix CSS to always fit image to viewport (#6527)
This commit is contained in:
@@ -170,13 +170,14 @@ body.has-modal-dialog .container, body.has-modal-dialog #wrapper {
|
||||
#lightbox-dialog {
|
||||
width: fit-content;
|
||||
max-width: 80%;
|
||||
min-width: 24em;
|
||||
min-width: calc(min(24em, 90%));
|
||||
.modal-card-content {
|
||||
padding: 2.5em;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-height: calc(100dvh - 60px - 5em - 5em);
|
||||
}
|
||||
|
||||
button {
|
||||
|
||||
Reference in New Issue
Block a user