Fix meetings card overflow

This commit is contained in:
blankhex committed 2026-10-24 23:55:39 +03:00
1 parent a07943e645
commit c35fca775c
1 file changed
+14 -2
+14 -2
View File
@@ -547,8 +547,11 @@ textarea:focus {
.meeting-grid {
display: grid;
/* Two cards per row on a wide screen (half the content width each); the
auto-fill layout collapses to one column on tablet/phone widths. */
grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
auto-fill layout collapses to one column on tablet/phone widths.
The track minimum is clamped to the container width via min() so a
narrow phone viewport does not force a 480px track that overflows
the parent card. */
grid-template-columns: repeat(auto-fill, minmax(min(480px, 100%), 1fr));
gap: 16px;
}
@@ -560,6 +563,9 @@ textarea:focus {
display: flex;
flex-direction: column;
gap: 8px;
/* Allow the card to shrink below its content's intrinsic width so long
unbroken strings (room names, titles) cannot push it past the grid. */
min-width: 0;
}
.meeting-head {
@@ -612,6 +618,12 @@ textarea:focus {
font-size: 0.82rem;
}
/* Long, unbroken room identifiers would otherwise widen the card past the
grid track on narrow screens; allow them to wrap. */
.meeting-card .meeting-meta code {
overflow-wrap: anywhere;
}
.meeting-votes {
display: flex;
gap: 8px;