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

[Feature] - Adding share button and relocating copy button #253

Open
dostonnabotov opened this issue Feb 5, 2025 · 5 comments
Open

[Feature] - Adding share button and relocating copy button #253

dostonnabotov opened this issue Feb 5, 2025 · 5 comments

Comments

@dostonnabotov
Copy link
Owner

dostonnabotov commented Feb 5, 2025

What feature would you like to see?

Now that we've implemented the search functionality, there's also a possibility to share snippets with others. For example, like this: https://quicksnip.dev/javascript/all-sub-languages/function-utilities?snippet=rate-limit-function

We plan to add a share button to make it easy and visible for our users to share/copy the code.

Regarding the copy button issue, it seems to block some code as mentioned by our contributor, @JanluOfficial, in Discord:

copy button issue

And, one proposed solution is to use the method from ChatGPT, where the buttons are located above the code in a small bar:

chatgpt method

We can put both the share and copy buttons there. This issue is open. If you plan to take on this, let us know.

@JanluOfficial
Copy link
Contributor

Instead of displaying the language on the left side of the bar, we could put it to the left of the snippet title.
We can also add the category of the snippet below the title. Here's a temu quality mockup I made in MS-Paint.

Image

@JanluOfficial
Copy link
Contributor

JanluOfficial commented Feb 5, 2025

Assuming we do put the language where I suggested, we can then use the cleared up area to show who contributed the snippet to save some vertical space.

Image

On mobile aka the tall layout, we may need to put it somewhere else though

@dostonnabotov
Copy link
Owner Author

Share button is added and copy button is relocated. Changes should be visible now with the following commit.

@ACR1209
Copy link
Contributor

ACR1209 commented Feb 9, 2025

Hey @dostonnabotov, can I work on adding the language icon and category name on the snippet? 👀

@dostonnabotov
Copy link
Owner Author

Hey @dostonnabotov, can I work on adding the language icon and category name on the snippet? 👀

Sure

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

No branches or pull requests

3 participants