Skip to content

Conversation

@tom-anders
Copy link
Collaborator

Problem: If no move has been made yet, materialDiff is null and its widget won't be displayed. This leads to a layout jump when the first move is made.
Solution: Make the materialDiff field inside MaterialDifferenceDisplay nullable
Before:

before.webm

After:

after.webm

@tom-anders
Copy link
Collaborator Author

(I forgot to mention that this only happens in landscape)

@tom-anders tom-anders requested a review from veloce March 23, 2025 15:42
Copy link
Contributor

@veloce veloce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@veloce veloce merged commit c5053d5 into lichess-org:main Mar 24, 2025
1 check 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