|
130 | 130 | <div class="flex items-center gap-2 flex-grow"> |
131 | 131 | <v-icon size="16" color="blue-lighten-2">mdi-folder-outline</v-icon> |
132 | 132 | <span class="text-sm font-semibold text-grey-lighten-1">{{ group.name }}</span> |
| 133 | + <v-tooltip v-if="group.description" location="top" max-width="320"> |
| 134 | + <template #activator="{ props: tooltipProps }"> |
| 135 | + <v-icon v-bind="tooltipProps" size="14" color="grey-lighten-1" class="cursor-help"> |
| 136 | + mdi-information-outline |
| 137 | + </v-icon> |
| 138 | + </template> |
| 139 | + <span class="text-xs">{{ group.description }}</span> |
| 140 | + </v-tooltip> |
133 | 141 | <v-chip size="x-small" variant="outlined" color="blue"> |
134 | 142 | {{ group.buttonMappingSuggestions.length }} |
135 | 143 | </v-chip> |
|
156 | 164 | </div> |
157 | 165 | </v-expansion-panel-title> |
158 | 166 | <v-expansion-panel-text> |
| 167 | + <p v-if="group.description" class="text-sm text-grey-lighten-1 mb-3"> |
| 168 | + {{ group.description }} |
| 169 | + </p> |
159 | 170 | <div class="flex flex-wrap gap-4 justify-start pt-2"> |
160 | 171 | <div |
161 | 172 | v-for="suggestion in group.buttonMappingSuggestions" |
|
252 | 263 | <div class="flex items-center gap-2"> |
253 | 264 | <v-icon size="16" color="green-lighten-2">mdi-folder-outline</v-icon> |
254 | 265 | <span class="text-sm font-semibold text-grey-lighten-1">{{ group.name }}</span> |
| 266 | + <v-tooltip v-if="group.description" location="top" max-width="320"> |
| 267 | + <template #activator="{ props: tooltipProps }"> |
| 268 | + <v-icon v-bind="tooltipProps" size="14" color="grey-lighten-1" class="cursor-help"> |
| 269 | + mdi-information-outline |
| 270 | + </v-icon> |
| 271 | + </template> |
| 272 | + <span class="text-xs">{{ group.description }}</span> |
| 273 | + </v-tooltip> |
255 | 274 | <v-chip size="x-small" variant="outlined" color="green"> |
256 | 275 | {{ group.buttonMappingSuggestions.length }} |
257 | 276 | </v-chip> |
258 | 277 | </div> |
259 | 278 | </v-expansion-panel-title> |
260 | 279 | <v-expansion-panel-text> |
| 280 | + <p v-if="group.description" class="text-sm text-grey-lighten-1 mb-3"> |
| 281 | + {{ group.description }} |
| 282 | + </p> |
261 | 283 | <div class="flex flex-wrap gap-4 justify-start pt-2"> |
262 | 284 | <div |
263 | 285 | v-for="suggestion in group.buttonMappingSuggestions" |
|
351 | 373 | <div class="flex items-center gap-2"> |
352 | 374 | <v-icon size="16" color="orange-lighten-2">mdi-folder-outline</v-icon> |
353 | 375 | <span class="text-sm font-semibold text-grey-lighten-1">{{ group.name }}</span> |
| 376 | + <v-tooltip v-if="group.description" location="top" max-width="320"> |
| 377 | + <template #activator="{ props: tooltipProps }"> |
| 378 | + <v-icon v-bind="tooltipProps" size="14" color="grey-lighten-1" class="cursor-help"> |
| 379 | + mdi-information-outline |
| 380 | + </v-icon> |
| 381 | + </template> |
| 382 | + <span class="text-xs">{{ group.description }}</span> |
| 383 | + </v-tooltip> |
354 | 384 | <v-chip size="x-small" variant="outlined" color="orange"> |
355 | 385 | {{ group.buttonMappingSuggestions.length }} |
356 | 386 | </v-chip> |
357 | 387 | </div> |
358 | 388 | </v-expansion-panel-title> |
359 | 389 | <v-expansion-panel-text> |
| 390 | + <p v-if="group.description" class="text-sm text-grey-lighten-1 mb-3"> |
| 391 | + {{ group.description }} |
| 392 | + </p> |
360 | 393 | <div class="flex flex-wrap gap-4 justify-start pt-2"> |
361 | 394 | <div |
362 | 395 | v-for="suggestion in group.buttonMappingSuggestions" |
@@ -871,10 +904,10 @@ interface FilteredExtensionGroups { |
871 | 904 | * @returns {boolean} True when the group is compatible with the selected profile |
872 | 905 | */ |
873 | 906 | const suggestionGroupMatchesSelectedProfile = (group: JoystickMapSuggestionGroup): boolean => { |
874 | | - if (!group.target?.length) return true |
| 907 | + if (!group.targetVehicleTypes?.length) return true |
875 | 908 | if (!selectedProfileHash.value) return false |
876 | 909 |
|
877 | | - return group.target.includes(selectedProfileHash.value) |
| 910 | + return group.targetVehicleTypes.includes(selectedProfileHash.value) |
878 | 911 | } |
879 | 912 |
|
880 | 913 | /** |
|
0 commit comments