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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user