From 46052172b2b383eed191a9c0e9c96ce507ac37dd Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 27 May 2025 12:14:02 +0200 Subject: [PATCH] Scrolled to bottom fix. --- src/snek/static/chat-input.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/snek/static/chat-input.js b/src/snek/static/chat-input.js index 1963b36..e32ffeb 100644 --- a/src/snek/static/chat-input.js +++ b/src/snek/static/chat-input.js @@ -76,13 +76,14 @@ class ChatInputComponent extends HTMLElement { const lowerAuthor = author.toLowerCase(); let distance = this.levenshteinDistance(lowerMention, lowerAuthor); if(!this.isSubsequence(lowerMention,lowerAuthor)) { - distance += 1 + distance += 10 } if (distance < minDistance) { minDistance = distance; closestAuthor = author; - console.info({ mention, closestAuthor, distance }); + } + console.info({ mention, closestAuthor, distance }); }); return { mention, closestAuthor, distance: minDistance };