Commit bfd3c90
committed
Keep modal OK button in view when message content overflows
The save-failure dialog now renders multi-section help text (headers,
list, link, several paragraphs), which exceeds the existing
max-height: 365px on .popup-modal.prompt. The message div was
overflowing past the modal box and pushing the OK button below the
visible area.
Restructure .popup-modal.prompt as a flex column:
- max-height: 80vh (more room when needed, still capped)
- Content area (#message) gets flex: 1 1 auto + overflow-y: auto, so
long content scrolls inside the box.
- Buttons get flex: 0 0 auto, so they stay pinned at the bottom of
the modal regardless of content size.
- The display: flex on .popup-modal.prompt.is--visible has three-class
specificity, beating the existing .popup-modal.is--visible
display: block rule without an !important.
Separately, cap the message dialog at max-width min(480px, 90vw) via
attribute selector so multi-paragraph prose wraps at a comfortable
reading measure (~60-65ch) rather than stretching across the full
viewport on wide monitors. Other prompt dialogs (unsaved, upload-type,
connection-type, ok-cancel) are short and unaffected.1 parent 4bed4df commit bfd3c90
1 file changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
322 | 347 | | |
323 | 348 | | |
324 | 349 | | |
| |||
0 commit comments