Skip to content

Crate names must be tapped twice on mobile #10772

@nk9

Description

@nk9

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

  1. Visit crates.io
  2. Search for a crate
  3. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions