mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
fix(ui): add shift+click to bypass message deletion confirmation (#23888)
This commit is contained in:
parent
e88e565ab4
commit
4790faba73
2 changed files with 12 additions and 4 deletions
|
|
@ -1381,8 +1381,12 @@
|
|||
class="{isLastMessage || ($settings?.highContrastMode ?? false)
|
||||
? 'visible'
|
||||
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition"
|
||||
on:click={() => {
|
||||
showDeleteConfirm = true;
|
||||
on:click={(e) => {
|
||||
if (e.shiftKey) {
|
||||
deleteMessageHandler();
|
||||
} else {
|
||||
showDeleteConfirm = true;
|
||||
}
|
||||
}}
|
||||
>
|
||||
<svg
|
||||
|
|
|
|||
|
|
@ -551,8 +551,12 @@
|
|||
class="{($settings?.highContrastMode ?? false)
|
||||
? ''
|
||||
: 'invisible group-hover:visible'} p-1 rounded-sm dark:hover:text-white hover:text-black transition"
|
||||
on:click={() => {
|
||||
showDeleteConfirm = true;
|
||||
on:click={(e) => {
|
||||
if (e.shiftKey) {
|
||||
deleteMessageHandler();
|
||||
} else {
|
||||
showDeleteConfirm = true;
|
||||
}
|
||||
}}
|
||||
>
|
||||
<svg
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue