Skip to content

Fix leaderboard player panel icon and compact-mode stale state#74

Merged
vicplusplus merged 1 commit intomainfrom
claude/fix-leaderboard-bugs-iFdKk
Apr 9, 2026
Merged

Fix leaderboard player panel icon and compact-mode stale state#74
vicplusplus merged 1 commit intomainfrom
claude/fix-leaderboard-bugs-iFdKk

Conversation

@vicplusplus
Copy link
Copy Markdown
Owner

The player panel play button's icon element only set background-image,
so without flex-grow / scale-to-fit it had no visible size. Made
.lb-play-icon self-contained (matching .lb-refresh-icon) so it renders
correctly both in row buttons (alongside .lb-row-btn__icon) and
standalone in the player panel.

Compact mode and short-tab-label state were cached in C# fields that
persisted across OnDisable/OnEnable, but Unity recreates the visual
tree on re-enable — so returning from a pushed scene (e.g. replay)
left the new root in the wrong layout when the geometry-derived state
matched the cache. _isCompact now reads directly from the live class
list (no cache), and _usingShortLabels is reset on every BuildUI.
Documented the underlying gotcha on NavigableScene.BuildUI.

The player panel play button's icon element only set background-image,
so without flex-grow / scale-to-fit it had no visible size. Made
.lb-play-icon self-contained (matching .lb-refresh-icon) so it renders
correctly both in row buttons (alongside .lb-row-btn__icon) and
standalone in the player panel.

Compact mode and short-tab-label state were cached in C# fields that
persisted across OnDisable/OnEnable, but Unity recreates the visual
tree on re-enable — so returning from a pushed scene (e.g. replay)
left the new root in the wrong layout when the geometry-derived state
matched the cache. _isCompact now reads directly from the live class
list (no cache), and _usingShortLabels is reset on every BuildUI.
Documented the underlying gotcha on NavigableScene.BuildUI.
@vicplusplus vicplusplus merged commit 2f642ca into main Apr 9, 2026
4 checks passed
@vicplusplus vicplusplus deleted the claude/fix-leaderboard-bugs-iFdKk branch April 9, 2026 15:53
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