Skip to content

Commit f5785bd

Browse files
authored
Merge pull request LMFDB#7156 from roed-math/ai/t21-rcs-knowl-layout
Keep knowl expansion from shifting table columns on /rcs
2 parents 5dde4cd + 0dc6c22 commit f5785bd

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lmfdb/templates/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,15 @@ table .knowl a {
11741174
margin-left: 0;
11751175
margin-right: 0;
11761176
}
1177+
/* Knowls opened inside a table cell insert a new full-width row (see
1178+
knowl_click_handler in lmfdb.js). Inline-size containment keeps that row
1179+
from being counted when the browser computes the column widths, so opening
1180+
a knowl no longer pushes the other columns around (issue #6501): the box
1181+
simply spans the table's current width. The .knowl-content overflow rule
1182+
above handles content that is wider than the available box. */
1183+
td > .knowl-output {
1184+
contain: inline-size;
1185+
}
11771186
.knowl-output.loading {
11781187
color: {{color.grey}};
11791188
font-style: italic;

0 commit comments

Comments
 (0)