diff --git a/public/assets/style.css b/public/assets/style.css index 215e0ab..0e8e21f 100644 --- a/public/assets/style.css +++ b/public/assets/style.css @@ -518,9 +518,12 @@ details.collapsible[open] > summary { margin-bottom: 1rem; } /* Review popup */ dialog.modal { - width: min(680px, 94vw); - max-height: 88vh; - overflow: auto; + width: max-content; + min-width: min(480px, 94vw); + max-width: min(1000px, 94vw); + max-height: 92vh; + overflow-x: hidden; + overflow-y: auto; padding: 1.25rem 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); @@ -560,3 +563,18 @@ dialog.modal .card-head { margin-bottom: 0.6rem; } } .dup-choice input { accent-color: var(--accent); } + +/* Popups: long values wrap instead of forcing a sideways scroll */ +dialog.modal table.table { table-layout: auto; } + +dialog.modal .table th, +dialog.modal .table td, +dialog.modal code { + white-space: normal; + overflow-wrap: anywhere; + word-break: break-word; +} + +dialog.modal .table-wrap { overflow-x: visible; } + +dialog.modal .dup-choice label { white-space: nowrap; }