Skip to content

Commit 0a1509b

Browse files
committed
Set max width and height for images inside modal
1 parent 70c125a commit 0a1509b

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

assets/css/dataview.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/src/scss/modal.scss

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
// Temporary fix until modal can be scaled properly.
2-
.dataviews-action-modal .components-modal__frame {
3-
max-width: max-content;
2+
.dataviews-action-modal {
3+
.components-modal__frame {
4+
max-width: max-content;
5+
}
6+
7+
img {
8+
max-width: 600px;
9+
max-height: 200px;
10+
}
11+
}
12+
13+
body.gravityview-template-default .components-modal__screen-overlay {
14+
z-index: 1000; // Still high.
415
}

0 commit comments

Comments
 (0)