feat(chat-widget): lift the nudge pieces and compact it on phones - #1135
Merged
Merged
Conversation
The nudge drops its eyebrow, floats the dismiss button as a round chip and gives the message and field a soft shadow. On screens 600px wide or less it shows only the message and the dismiss button, and steps aside without snoozing once the visitor scrolls most of a screen away. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follow-up to #1132.
Lifted pieces (all viewports)
aria-label.Compact on phones (≤600px, the same breakpoint where the panel goes full-screen)
Why
On a 375px phone the full nudge covered about a quarter of the screen and followed the visitor down the page. Its inline input was also the risky part on mobile: it opens the on-screen keyboard over a
position: fixedelement. On a phone the input saved no steps either, because sending opens the full-screen panel anyway, and that panel's composer already handles the keyboard. Hiding the nudge entirely on mobile would cut the feature out for most visitors on many sites, so it stays, in a smaller form.Testing
pnpm -F @getmunin/chat-widget testpasses. New tests check that on a phone-sized viewport the nudge hides after enough scrolling without reporting a dismissal, and that it stays put on larger viewports. The eyebrow assertion is replaced by anaria-labelcheck.skill://conv/setup-chat-widget, the chat-widget docs guide anddocs-fixtures/skills.jsonare updated.🤖 Generated with Claude Code