Skip to content

Commit a492cc0

Browse files
committed
force tbody elts to almost the viewport height (leave 250px for other chrome), and make their contents scrollable (#595)
1 parent 81097b3 commit a492cc0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/web/css/editor.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2297,6 +2297,9 @@ table.pyret-table.pyret-matrix {
22972297
table.pyret-table thead {
22982298
box-shadow: 0px 2px 2px var(--shadow-color);
22992299
}
2300+
/* Force tables to be the full height of the viewport, leaving 250px for other chrome */
2301+
table.pyret-table tbody { max-height: calc(100vh - 250px); display: block; overflow: scroll; }
2302+
table.pyret-table tr { table-layout: fixed; display: table; width: 100%; }
23002303
table.pyret-row th {
23012304
box-shadow: 2px 0px 2px var(--shadow-color), -2px 0px 2px var(--shadow-color);
23022305
border: none;

0 commit comments

Comments
 (0)