Add model info to model icon as title

This commit is contained in:
Stefan Daniel Schwarz 2023-08-27 12:13:55 +02:00
parent 0d8a83e6b6
commit 813a640334
1 changed files with 1 additions and 0 deletions

View File

@ -1324,6 +1324,7 @@ function insertSVGIcon(mes, extra) {
// Add classes for styling and identification
image.classList.add('icon-svg', 'timestamp-icon');
image.src = `/img/${modelName}.svg`;
image.title = `${extra?.api ? extra.api + ' - ' : ''}${extra?.model ?? ''}`;
image.onload = async function () {
// Check if an SVG already exists adjacent to the timestamp