Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
8f2d5809
Unverified
Commit
8f2d5809
authored
Feb 27, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Feb 27, 2024
Browse files
Merge pull request #940 from jannikstdl/link-fix
fix: mark text when editing chat titles
parents
6bbc3721
7fe41237
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/lib/components/layout/Sidebar.svelte
src/lib/components/layout/Sidebar.svelte
+4
-1
No files found.
src/lib/components/layout/Sidebar.svelte
View file @
8f2d5809
...
...
@@ -31,6 +31,7 @@
let chatTitle = '';
let showDropdown = false;
let isEditing = false;
onMount(async () => {
if (window.innerWidth > 1280) {
...
...
@@ -372,6 +373,7 @@
? 'bg-gray-900'
: ''} transition whitespace-nowrap text-ellipsis"
href="/c/{chat.id}"
draggable={isEditing ? 'false' : 'true'}
>
<div class=" flex self-center flex-1 w-full">
<div
...
...
@@ -398,6 +400,7 @@
editChatTitle(chat.id, chatTitle);
chatTitleEditId = null;
chatTitle = '';
isEditing = false;
}}
>
<svg
...
...
@@ -485,7 +488,7 @@
on:click={() => {
chatTitle = chat.title;
chatTitleEditId = chat.id;
// editChatTitle(chat.id, 'a')
;
isEditing = true
;
}}
>
<svg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment