mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-31 00:23:52 +00:00
title can be confirmed w enter and cancel w esc
This commit is contained in:
parent
6f90eead85
commit
3d0f5525f3
@ -11,7 +11,7 @@
|
||||
<p v-if="!editTitle" :title="title" class="truncate w-full">{{ title ? title === "untitled" ? "New discussion" : title : "New discussion" }}</p>
|
||||
|
||||
<input v-if="editTitle" type="text" id="title-box" class="bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1"
|
||||
:value="title" required @input="chnageTitle($event.target.value)" @click.stop>
|
||||
:value="title" required @keydown.enter.exact="editTitleEvent()" @keydown.esc.exact="editTitleMode = false " @input="chnageTitle($event.target.value)" @click.stop>
|
||||
|
||||
<!-- CONTROL BUTTONS -->
|
||||
<div class="flex items-center flex-1 max-h-6">
|
||||
|
Loading…
x
Reference in New Issue
Block a user