Fix meetings card overflow
This commit is contained in:
1 parent
a07943e645
commit
c35fca775c
1 file changed
+14
-2
+14
-2
@@ -547,8 +547,11 @@ textarea:focus {
|
|||||||
.meeting-grid {
|
.meeting-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
/* Two cards per row on a wide screen (half the content width each); the
|
/* 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. */
|
auto-fill layout collapses to one column on tablet/phone widths.
|
||||||
grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
|
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;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -560,6 +563,9 @@ textarea:focus {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
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 {
|
.meeting-head {
|
||||||
@@ -612,6 +618,12 @@ textarea:focus {
|
|||||||
font-size: 0.82rem;
|
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 {
|
.meeting-votes {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
|||||||
Reference in new issue
Block a user