Skip to content

fix(shortcut-row): tile popup icons proportionally across the usable row (#36)#68

Merged
AsafMah merged 1 commit into
devfrom
fix/shortcut-popup-proportional
Jun 7, 2026
Merged

fix(shortcut-row): tile popup icons proportionally across the usable row (#36)#68
AsafMah merged 1 commit into
devfrom
fix/shortcut-popup-proportional

Conversation

@AsafMah

@AsafMah AsafMah commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Follow-up to the merged #58. On-device, the left-pin aligned the icons to the left at natural width, so the far-right keys couldn't reach the popup. Now the N icons are each sized to rowWidth/iconCount (the usable normal-key row span) and pinned to the row's left edge, so they tile the whole row and a swipe maps proportionally — swiping from the i-th 1/N segment of the usable row selects the i-th icon. Threads a fixedKeyWidth through PopupKeysKeyboard.Builder (0 = default for normal/emoji long-press popups; dividers dropped in that mode so icons tile exactly). Compiles; needs on-device confirmation of the proportional feel.

…row (#36)

Follow-up to #58: the left-pin used natural icon width, so N icons tiled from the
left and the far-right keys couldn't reach them. Now each icon is sized to
rowWidth/iconCount (usable normal-key row span), so the N icons tile the whole row
and a swipe maps proportionally — swiping from the i-th 1/N of the row selects the
i-th icon. Threads a fixedKeyWidth into PopupKeysKeyboard.Builder (0 = default for
normal/emoji popups); dividers are dropped in that mode so the icons tile exactly.
@AsafMah

AsafMah commented Jun 7, 2026

Copy link
Copy Markdown
Owner Author

On-device verified (S24+): icons now tile the usable letter-row proportionally — far-left key hits the far-left icon, far-right key the far-right icon. ✅

@AsafMah
AsafMah merged commit 2699b52 into dev Jun 7, 2026
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.

1 participant