Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Techstack-beta] Make prompts unselectable #1380

Open
jtojnar opened this issue Apr 4, 2024 · 1 comment
Open

[Techstack-beta] Make prompts unselectable #1380

jtojnar opened this issue Apr 4, 2024 · 1 comment
Assignees
Labels
design About the design refresh work

Comments

@jtojnar
Copy link
Member

jtojnar commented Apr 4, 2024

Describe the glitch

The prompts on the download page regressed yet again. They can be selected, which prevents easy copying. Previously:

Also in Nixpkgs:

Additional context

It needs user-select: none CSS property.

@jtojnar jtojnar added the design About the design refresh work label Apr 4, 2024
@thilobillerbeck
Copy link
Collaborator

thilobillerbeck commented Apr 5, 2024

Good point, just anyone grabs this, since we process most of the prompts from markdown, we may can introduce a e.g. remark plugin which processes bash code snippets in such a way, that it has the structure to readily apply the non selectable properties.

Maybe the highlighter also added some consistent naming to the prompt, although we should check upfront how much this is prone to break in the future, since it is clearly not meant to be hooked into

(good job GitHub Mobile btw. for just duplicating my old post and appending the new one onto that when appending... 💀)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design About the design refresh work
Projects
None yet
Development

No branches or pull requests

3 participants