Skip to content

Make chess views scrollable, fix chess chat duplication and unmount chess component safely when it is removed from the DOM - #15

Merged
soapdog merged 15 commits into
soapdog:masterfrom
Happy0:chess_scrollable
Oct 23, 2026
Merged

soapdog merged 15 commits into
soapdog:masterfrom
Happy0:chess_scrollable

Conversation

@Happy0

@Happy0 Happy0 commented Oct 14, 2026 •

Copy link
Copy Markdown

Make chess views scrollable.

Currently, there is no scroll bar on chess pages after I made a change
to remove the 'scrollable' wrapper which was messing up the chess
layout.

It seems using the 'scrollable' class instead both brings back the
scroll bars and keeps the layout working properly.

Also fixes issue where game chat boxes would be duplicated if
the view was removed from the patchwork view cache then restored
by following this guide: https://mithril.js.org/integrating-libs.html

Also fixes issue where the app would not be loadable again if it was
removed from the cache in views.js due to inactivity then the user
went to the route again by unmounting the app when it is removed
from the DOM.

New version of ssb-chess-mithril also has upgraded the mithriljs
and chessground libraries.

Currently, there is no scroll bar on chess pages after I made a change
to remove the 'scrollable' wrapper which was messing up the chess
layout.

It seems using the 'scrollable' class instead both brings back the
scroll bars and keeps the layout working properly.
@Happy0 Happy0 changed the title Make chess views scrollable. Make chess views scrollable and fix chess chat duplication. Oct 14, 2026
@Happy0 Happy0 changed the title Make chess views scrollable and fix chess chat duplication. Make chess views scrollable, fix chess chat duplication and unmount chess component safely when it is removed from the DOM Oct 19, 2026
@soapdog
soapdog merged commit 5aa6cec into soapdog:master Oct 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants