fix: bad layout for wider dialogs on portrait mobile

Massimo Melina committed Jan 16, 2022 at 00:02 UTC 789fdf860f9b4406e498d06bf0840432d57a7a97
1 file changed +2 -2
frontend/src/dialog.css
+2 -2
@@ -18,7 +18,7 @@
18 color: var(--color);
19 border: 3px solid var(--color);
20 margin: -10vh 1.5em 0; /* leave space for corner icons */
21 - max-height: 80vh;
21 + max-width: calc(100vw - 7em);
22 }
23 .dialog-icon {
24 color: #fff;
@@ -49,7 +49,7 @@
49 max-height: 80vh;
50 }
51 .dialog-content p {
52 - white-space: pre;
52 + white-space: pre-wrap;
53 margin: .5em 0;
54 }
55 .dialog-confirm button {