Popups: wrap long values, no sideways scroll, grow to fit content

This commit is contained in:
Clarth 2026-12-01 17:11:20 -05:00
parent 6e1e902a76
commit f553bc6b89

View file

@ -518,9 +518,12 @@ details.collapsible[open] > summary { margin-bottom: 1rem; }
/* Review popup */ /* Review popup */
dialog.modal { dialog.modal {
width: min(680px, 94vw); width: max-content;
max-height: 88vh; min-width: min(480px, 94vw);
overflow: auto; max-width: min(1000px, 94vw);
max-height: 92vh;
overflow-x: hidden;
overflow-y: auto;
padding: 1.25rem 1.4rem; padding: 1.25rem 1.4rem;
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: var(--radius); border-radius: var(--radius);
@ -560,3 +563,18 @@ dialog.modal .card-head { margin-bottom: 0.6rem; }
} }
.dup-choice input { accent-color: var(--accent); } .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; }