diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index 8516dc407..df8a72b8e 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -119,6 +119,7 @@ langDiv.style.fontSize = '0.75rem'; let button = document.createElement('button'); + button.className = 'copy-code-button'; button.textContent = 'Copy Code'; button.style.background = 'none'; button.style.fontSize = '0.75rem'; @@ -832,7 +833,7 @@ + +
+ +
+
+
+
+
Open new chat
+ +
+
+ Ctrl/⌘ +
+ +
+ Shift +
+ +
+ O +
+
+
+ +
+
Focus chat input
+ +
+
+ Shift +
+ +
+ Esc +
+
+
+ +
+
Copy last code block
+ +
+
+ Ctrl/⌘ +
+ +
+ Shift +
+ +
+ ; +
+
+
+ +
+
Copy last response
+ +
+
+ Ctrl/⌘ +
+ +
+ Shift +
+ +
+ C +
+
+
+
+ +
+
+
Toggle sidebar
+ +
+
+ Ctrl/⌘ +
+ +
+ Shift +
+ +
+ S +
+
+
+ +
+
Delete chat
+ +
+
+ Ctrl/⌘ +
+
+ Shift +
+ +
+ ⌫ +
+
+
+ +
+
Show shortcuts
+ +
+
+ Ctrl/⌘ +
+ +
+ / +
+
+
+
+
+
+ + + + diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index ceb7ec82a..18b4f5fbb 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -61,6 +61,7 @@
{:else}
+ +
+ + +
{#if !['user', 'admin'].includes($user.role)}