implement autoResize for terminal in demo

This is optional (but the default): You can still explicitly set COLSxROWS,
but "auto" uses a ResizeObserver sets the size based on window size.
This commit is contained in:
Per Bothner
2023-08-19 08:28:43 -07:00
parent e2d699cb32
commit 025e8505d5
2 changed files with 34 additions and 13 deletions
+3
View File
@@ -108,3 +108,6 @@ div:first-of-type.grid {
.vt-button * {
margin-right: 1em;
}
input#opt-cols_rows {
width: 6em;
}