Skip to content

fix: emoji search scroll area height#211

Merged
unsecretised merged 2 commits intoRustCastLabs:masterfrom
jiasunzhu613:emojisearch-hotfix
Mar 23, 2026
Merged

fix: emoji search scroll area height#211
unsecretised merged 2 commits intoRustCastLabs:masterfrom
jiasunzhu613:emojisearch-hotfix

Conversation

@jiasunzhu613
Copy link
Copy Markdown
Contributor

Small fix to emoji scroll area height.

What changed?

Before: Page::EmojiSearch used heigh based on results.len() * 60 which isn't accurate because emojis are displayed in rows of 6 and are larger than normal search items

After: Scroll area height for EmojiSearch is now based on ((tile.results.len() + 6 - 1) / 6) * 90 which is equivalent to taking the ceiling of tile.results.len() / 6 then multiplying by 90 (70 for emoji height and 20 for padding)

@unsecretised unsecretised merged commit 638ad79 into RustCastLabs:master Mar 23, 2026
2 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