fix(BaseMessage): keep message actions visible on touch devices - #252
Merged
vladimirfilosof merged 1 commit intoSep 17, 2026
Merged
Conversation
Message actions - copy, like, dislike - were hidden behind `:hover`, which a touch device never enters. On a phone the copy button is therefore permanently invisible and the answer cannot be copied at all. Apply the hover-hiding only under `@media (hover: hover)`, so a pointer that cannot hover gets the actions shown at all times. The actions already reserve their space (`visibility`, not `display`), so nothing shifts.
Contributor
|
🚀 Prerelease version published! Install this PR version: npm i --save-dev @gravity-ui/aikit@2.20.2-beta.06dfacf7b7ce91d63acd456737fe4ebc6e0ca2ea.0 |
|
Preview is ready. |
Contributor
|
🎭 Component Tests Report is ready. |
vladimirfilosof
marked this pull request as ready for review
September 17, 2026 16:21
artemzn
self-requested a review
September 17, 2026 16:23
artemzn
approved these changes
Sep 17, 2026
vladimirfilosof
deleted the
CLOUDFRONT-62892-assistant-touch-copy-button
branch
September 17, 2026 16:41
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.
Message actions — copy, like, dislike — were hidden behind
:hover, which a touch device never enters. On a phone the copy button is therefore permanently invisible and an answer cannot be copied at all.The hover-hiding now applies only under
@media (hover: hover), so a pointer that cannot hover gets the actions shown at all times, while a mouse keeps the current behaviour. The actions already reserve their space (visibility, notdisplay), so nothing shifts either way.