Add scroll-to-bottom button inside session view #26
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/19_scroll_to_bottom_button"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #19
Что сделано
Кнопка быстрой прокрутки внутри просмотра сессии:
scrollсrequestAnimationFrame(без дёрганья layout на каждый кадр).Правки только фронта (
public/app.js,public/style.css), API не менялся.Как проверить
Открыть любую сессию → справа внизу «↓ Вниз» → клик → плавный скролл к последнему сообщению, кнопка исчезает у дна, появляется «↑ Вверх» → клик → возврат наверх. Уйти со страницы сессии → кнопки пропадают.
Тесты
npm test— 34/34 зелёные (правки фронтовые, тесты не затронуты). Дополнительно прогнан смоук в браузере на фикстурах: монтирование, скролл вниз/вверх, скрытие у дна, снятие слушателя при уходе.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.