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

feat: add ability to copy code snippets #44

Merged
merged 5 commits into from
Jun 7, 2024
Merged

Conversation

fmaclen
Copy link
Owner

@fmaclen fmaclen commented Jun 7, 2024

Closes #19

Copy link

cloudflare-pages bot commented Jun 7, 2024

Deploying hollama with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7d2851b
Status: ✅  Deploy successful!
Preview URL: https://d44c59f1.hollama.pages.dev
Branch Preview URL: https://19-copy-code-snippets.hollama.pages.dev

View logs

@@ -193,7 +193,7 @@
</div>
{/if}

{#each session.messages as message}
{#each session.messages as message, i (session.id + i)}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to set a unique key for every instance of <Article> so it get's mounted/dismounted every time the session changes.

Comment on lines +69 to +70
&--icon :global(svg) {
@apply opacity-25 hover:opacity-50 active:opacity-100;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applies a darker color when clicking on the icon.

@fmaclen fmaclen merged commit 97a3014 into main Jun 7, 2024
2 checks passed
@fmaclen fmaclen deleted the 19-copy-code-snippets branch June 7, 2024 18:00
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

Successfully merging this pull request may close these issues.

Add ability to copy code snippets
1 participant