Skip to content

fix(BaseMessage): keep message actions visible on touch devices - #252

Merged
vladimirfilosof merged 1 commit into
mainfrom
CLOUDFRONT-62892-assistant-touch-copy-button
Sep 17, 2026
Merged

vladimirfilosof merged 1 commit into
mainfrom
CLOUDFRONT-62892-assistant-touch-copy-button

Conversation

@vladimirfilosof

@vladimirfilosof vladimirfilosof commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

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, not display), so nothing shifts either way.

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.
@gravity-ui

gravity-ui Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

🚀 Prerelease version published!

Install this PR version:

npm i --save-dev @gravity-ui/aikit@2.20.2-beta.06dfacf7b7ce91d63acd456737fe4ebc6e0ca2ea.0

@gravity-ui-bot

Copy link
Copy Markdown

Preview is ready.

@gravity-ui

gravity-ui Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

🎭 Component Tests Report is ready.

@vladimirfilosof
vladimirfilosof marked this pull request as ready for review September 17, 2026 16:21
@artemzn
artemzn self-requested a review September 17, 2026 16:23
@vladimirfilosof
vladimirfilosof added this pull request to the merge queue Sep 17, 2026
Merged via the queue into main with commit 9c5fb09 Sep 17, 2026
7 checks passed
@vladimirfilosof
vladimirfilosof deleted the CLOUDFRONT-62892-assistant-touch-copy-button branch September 17, 2026 16:41
@gravity-ui gravity-ui Bot mentioned this pull request Sep 17, 2026
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.

3 participants