mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 08:56:39 +00:00
keep the functionality to drag a chat
This commit is contained in:
parent
d24b6fa9af
commit
03210c9204
@ -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 @@
|
|||||||
? '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 @@
|
|||||||
editChatTitle(chat.id, chatTitle);
|
editChatTitle(chat.id, chatTitle);
|
||||||
chatTitleEditId = null;
|
chatTitleEditId = null;
|
||||||
chatTitle = '';
|
chatTitle = '';
|
||||||
|
isEditing = false;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user