fix: preserve turn anchors when prepending history

This commit is contained in:
2026-09-30 12:23:27 +09:00
parent 58c5c43061
commit 5560a88f43
2 changed files with 18 additions and 16 deletions
@@ -113,7 +113,8 @@
.turn-bars::-webkit-scrollbar { display: none; }
/* Center short lists without making overflowing turns unreachable. */
/* Bottom-align short lists so prepending older turns does not move existing bars.
Once overflowing, scroll-anchor restoration keeps those bars in place. */
.history-boundary { margin-top: auto; }
.history-boundary button, .history-boundary span {
display: grid;
@@ -127,7 +128,6 @@
font: inherit;
}
.history-boundary button { cursor: pointer; color: var(--tui-cyan); }
.turn-button:last-child { margin-bottom: auto; }
.turn-button {
display: grid;