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
03210c92
Commit
03210c92
authored
Feb 27, 2024
by
Jannik Streidl
Browse files
keep the functionality to drag a chat
parent
d24b6fa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/lib/components/layout/Sidebar.svelte
src/lib/components/layout/Sidebar.svelte
+4
-2
No files found.
src/lib/components/layout/Sidebar.svelte
View file @
03210c92
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
let chatTitle = '';
let chatTitle = '';
let showDropdown = false;
let showDropdown = false;
let isEditing = false;
onMount(async () => {
onMount(async () => {
if (window.innerWidth > 1280) {
if (window.innerWidth > 1280) {
...
@@ -372,7 +373,7 @@
...
@@ -372,7 +373,7 @@
? 'bg-gray-900'
? 'bg-gray-900'
: ''} transition whitespace-nowrap text-ellipsis"
: ''} transition whitespace-nowrap text-ellipsis"
href="/c/{chat.id}"
href="/c/{chat.id}"
draggable=
"false"
draggable=
{isEditing ? 'false' : null}
>
>
<div class=" flex self-center flex-1 w-full">
<div class=" flex self-center flex-1 w-full">
<div
<div
...
@@ -399,6 +400,7 @@
...
@@ -399,6 +400,7 @@
editChatTitle(chat.id, chatTitle);
editChatTitle(chat.id, chatTitle);
chatTitleEditId = null;
chatTitleEditId = null;
chatTitle = '';
chatTitle = '';
isEditing = false;
}}
}}
>
>
<svg
<svg
...
@@ -486,7 +488,7 @@
...
@@ -486,7 +488,7 @@
on:click={() => {
on:click={() => {
chatTitle = chat.title;
chatTitle = chat.title;
chatTitleEditId = chat.id;
chatTitleEditId = chat.id;
// editChatTitle(chat.id, 'a')
;
isEditing = true
;
}}
}}
>
>
<svg
<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