This commit is contained in:
Pascal 2025-01-22 16:29:16 +01:00
parent 27cd5703d8
commit 8d22c62753
2 changed files with 11 additions and 5 deletions

View File

@ -330,10 +330,6 @@ body {
color: var(--primary-color);
}
.my-process {
background-color: var(--accent-color);
}
#message-input {
width: 100%;
height: 50px;

View File

@ -796,7 +796,17 @@ class ChatElement extends HTMLElement {
// Si le processus est dans notre Set, ajouter la classe my-process
if (this.userProcessSet && this.userProcessSet.has(oneProcess)) {
li.style.backgroundColor = 'var(--accent-color)';
li.style.cssText = `
background-color: var(--accent-color);
transition: background-color 0.3s ease;
cursor: pointer;
`;
li.onmouseover = () => {
li.style.backgroundColor = 'var(--accent-color-hover)';
};
li.onmouseout = () => {
li.style.backgroundColor = 'var(--accent-color)';
};
console.log("✅ Processus trouvé dans le set:", oneProcess);
}