chore: remove duplicate _truncateText from LorasControls/CheckpointsControls, add backend test for civitai_model_id filter

This commit is contained in:
Will Miao
2026-06-21 11:19:54 +08:00
parent fc29cde82a
commit 7cb6b04c63
3 changed files with 65 additions and 20 deletions

View File

@@ -144,16 +144,6 @@ export class LorasControls extends PageControls {
await resetAndReload();
}
/**
* Helper to truncate text with ellipsis
* @param {string} text - Text to truncate
* @param {number} maxLength - Maximum length before truncating
* @returns {string} - Truncated text
*/
_truncateText(text, maxLength) {
return text.length > maxLength ? text.substring(0, maxLength - 3) + '...' : text;
}
/**
* Initialize the alphabet bar component
*/