| commit | c4314da61fbe6eccc296e4f59cead5f7d7dd3b7a | [log] [tgz] |
|---|---|---|
| author | Hermann Loose <hermannloose@google.com> | Thu Apr 08 11:22:06 2021 +0200 |
| committer | Paladox none <thomasmulhall410@yahoo.com> | Thu Apr 08 13:43:03 2021 +0000 |
| tree | bb155c532053c516b9b0e3a802e71283bee4b3e3 | |
| parent | 524317ac9873c1ab06953d57343f691d71a8ccc7 [diff] |
Allow setting image viewer max-width and max-weight externally Change-Id: Ie151a85d8ede5cb7fa0899d9367ca0dccd887538 (cherry picked from commit 1e42819845f0931ff86b862808a392b90ff0409d)
diff --git a/polygerrit-ui/app/elements/diff/gr-diff/gr-diff_html.ts b/polygerrit-ui/app/elements/diff/gr-diff/gr-diff_html.ts index 3aa4db9..16bcef6 100644 --- a/polygerrit-ui/app/elements/diff/gr-diff/gr-diff_html.ts +++ b/polygerrit-ui/app/elements/diff/gr-diff/gr-diff_html.ts
@@ -103,8 +103,8 @@ gr-image-viewer { width: 100%; height: 100%; - max-width: 95vw; - max-height: 90vh; + max-width: var(--image-viewer-max-width, 95vw); + max-height: var(--image-viewer-max-height, 90vh); } .image-diff .gr-diff { text-align: center;