mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
caption extension now adds the caption to the img title attribute
This commit is contained in:
@ -724,6 +724,7 @@ function appendImageToMessage(mes, messageElement) {
|
||||
if (mes.extra?.image) {
|
||||
const image = document.createElement("img");
|
||||
image.src = mes.extra?.image;
|
||||
image.title = mes.title;
|
||||
image.classList.add("img_extra");
|
||||
messageElement.find(".mes_text").prepend(image);
|
||||
}
|
||||
|
Reference in New Issue
Block a user