KlausMikhaelson / emoji_mosaic_art

https://emoji-mosaic-art.vercel.app/
MIT License
6 stars 1 forks source link

When copying an image, I’m getting random emojis instead #1

Open SuperexMack opened 2 months ago

SuperexMack commented 2 months ago

https://github.com/user-attachments/assets/a223b7a2-e15d-4563-a509-81c808e59c2e

deep1327007 commented 3 weeks ago

Fix for Emoji Whitespace Issue

I fixed an issue where emojis would automatically move to a new line when pasted, due to a whitespace problem.

To resolve this, I made a function with the help of AI to check if multiple emojis are present on the same line. If they are, the "handleCopy" function ensures that the next set of emojis starts on a new line.

So, I implemented a copy function that is linked to the "Copy Emojis" button on the frontend. This function automatically selects all emojis, helping to avoid manual selection and ensuring they are copied correctly.

https://github.com/user-attachments/assets/bc10f13b-9d6d-4e61-bffb-5480ee4e752f

SuperexMack commented 3 weeks ago

Oh wow it looks cool

KlausMikhaelson commented 2 weeks ago

Fix for Emoji Whitespace Issue

I fixed an issue where emojis would automatically move to a new line when pasted, due to a whitespace problem.

To resolve this, I made a function with the help of AI to check if multiple emojis are present on the same line. If they are, the "handleCopy" function ensures that the next set of emojis starts on a new line.

So, I implemented a copy function that is linked to the "Copy Emojis" button on the frontend. This function automatically selects all emojis, helping to avoid manual selection and ensuring they are copied correctly.

copy_emojis.mp4

good job!, can you create a Pull request for the same ?

deep1327007 commented 2 weeks ago

i have pocked in many places, have listed them in PR description.