-
Notifications
You must be signed in to change notification settings - Fork 681
Description
Current Behavior
When you tap a crate name from a list of results on mobile, the first tap brings up a copy button. In order to learn more about the crate, you have to tap twice.
trim.72F6BCC7-477C-4E02-8089-F901B9424768.MOV
Expected Behavior
On mobile, I would expect a single tap to open the crate details page.
Steps To Reproduce
- Visit crates.io
- Search for a crate
- Tap the crate name
Environment
- Browser: Safari
- OS: iOS 18.3.1
Anything else?
The copy button copies a string like this to your clipboard:
enumerate = "0.1.1"
This is very useful on desktop, where you’re probably adding a dependency to your Cargo.toml. But you are almost never doing that on mobile. So the end result is that you get a single click to the details on desktop, where you get to click the copy icon on hover if you want. But you have to perform a largely useless first click on mobile to get through the copy button step.
I suggest that, at least on mobile, the hover button only be revealed when tapping on the version. That’s the item more closely associated with the dependency version string anyway. Or perhaps this shortcut isn't needed on mobile at all.