fix: chat bubble text unselectable
This commit is contained in:
@@ -166,7 +166,7 @@ export function MessageGestures({
|
|||||||
// Full width so the whole row is draggable — WhatsApp lets you start the
|
// Full width so the whole row is draggable — WhatsApp lets you start the
|
||||||
// gesture anywhere on the line, including the empty space opposite the
|
// gesture anywhere on the line, including the empty space opposite the
|
||||||
// bubble. The bubble caps its own width inside this.
|
// bubble. The bubble caps its own width inside this.
|
||||||
className="relative w-full"
|
className="relative w-full select-none [-webkit-touch-callout:none]"
|
||||||
onPointerDown={onPointerDown}
|
onPointerDown={onPointerDown}
|
||||||
onPointerMove={onPointerMove}
|
onPointerMove={onPointerMove}
|
||||||
onPointerUp={onPointerUp}
|
onPointerUp={onPointerUp}
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export function MessageMenu({
|
|||||||
// min-w-56 rather than something tighter: "Delete for everyone" is the
|
// min-w-56 rather than something tighter: "Delete for everyone" is the
|
||||||
// longest label and, with its icon and padding, was wrapping or sitting
|
// longest label and, with its icon and padding, was wrapping or sitting
|
||||||
// flush against the edge at a narrower width.
|
// flush against the edge at a narrower width.
|
||||||
className="fixed z-50 min-w-56 overflow-hidden rounded-xl border border-border bg-background pb-1 shadow-lg"
|
className="fixed z-50 min-w-56 select-none overflow-hidden rounded-xl border border-border bg-background pb-1 shadow-lg"
|
||||||
>
|
>
|
||||||
{/* Reactions lead: they are the most common thing to want from a
|
{/* Reactions lead: they are the most common thing to want from a
|
||||||
long press, and putting them in this menu keeps one gesture
|
long press, and putting them in this menu keeps one gesture
|
||||||
|
|||||||
Reference in New Issue
Block a user