You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent long-press text selection and enlarge plan dropdown for touch UX
Add a shared .hold-press utility (user-select/touch-callout/touch-action/tap-highlight off) and apply it with select-none touch-manipulation + onContextMenu preventDefault to all hold-to-confirm buttons (Hold to Reset, Save/Reset Robot Config, Update/Reset All Parameters, ROS bridge refresh) so iOS/Android/Linux touch screens no longer trigger the text-selection cursor or context menu mid-press. Also detach the plan picker popover from the trigger width: w-[36rem], text-[1.625rem], min-h-[5rem] items, with max-h capped by --radix-popover-content-available-height so it fits any viewport.
Copy file name to clipboardExpand all lines: src/index.css
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,15 @@ input[type="range"] {
53
53
touch-action: pan-x;
54
54
}
55
55
56
+
/* Hold-to-confirm targets: suppress iOS callout, Android selection menu, and text selection magnifier on long press. Pair with Tailwind `select-none touch-manipulation`. */
0 commit comments