ui icon indicating copy to clipboard operation
ui copied to clipboard

fix(components): use "supports-hover" to improve display on mobile devices

Open Mirrorgo opened this issue 6 months ago • 2 comments

Add supports-hover variant to Tailwind config for better mobile UX

  • Introduces a new Tailwind variant 'supports-hover'
  • Uses @media (hover: hover) to target devices with true hover capability
  • Allows conditional application of hover styles
  • Fixes inconsistent toggle button behavior on touch devices
  • Maintains hover effects on desktop while disabling them on most mobile devices

Mirrorgo avatar Aug 07 '24 01:08 Mirrorgo