Commit e7270d6
authored
Keep scroll at the bottom when new output is appended (#149)
This works by using flex-direction: column-reverse so the browser will
treat the div as being reverted and will keep the scroll at the bottom
instead of top. The extra div is necessary so the content doesn't have
to be written inverted1 parent 3ef8a30 commit e7270d6
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
0 commit comments