fix: reduce redundant filter item opacity, fix JSDoc param name

- Lower opacity from 0.45 to 0.33 for better visual distinction of redundant character filter items
- Fix JSDoc parameter name: choiceDisplay → element in getFilterItemForChoice()
This commit is contained in:
Wolfsblvt
2026-05-19 01:04:53 +02:00
parent bf2a0143c3
commit 28669f4985
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -297,5 +297,5 @@ span.select2.select2-container .select2-selection__choice__remove:hover {
/* Character filter — redundant items (singleton type has a required item) */
.select2-container .select2-selection--multiple .select2-selection__choice.character_filter_redundant {
opacity: 0.45;
opacity: 0.33;
}
+1 -1
View File
@@ -3425,7 +3425,7 @@ function warnCharacterFilterSingletonConflicts(filterItems) {
* Finds the filter item that corresponds to a rendered select2 choice element.
* Uses data attributes embedded by templateSelection for robust matching.
* @param {Array<{type: string, name: string, state: string}>} filterItems - The character filter array.
* @param {JQuery<HTMLElement>} choiceDisplay - The .select2-selection__choice__display element.
* @param {JQuery<HTMLElement>} element - The .select2-selection__choice__display element.
* @returns {object|undefined} The matching filter item, or undefined.
*/
function getFilterItemForChoice(filterItems, element) {