Commit c62097c
authored
Make diaplay items to actual hyperlinks (#1408)
* fix: Restore shouldHighlightNameIfInteracted prop in MediaSearchItem component
- Reintroduced the `shouldHighlightNameIfInteracted` prop in the `MediaSearchItem` component to ensure proper highlighting behavior when the item is interacted with.
- This change enhances the user experience by maintaining visual feedback during interactions.
* refactor: Update onImageClickBehavior prop to accept an array for enhanced flexibility
- Modified the `onImageClickBehavior` prop in multiple components to accept an array, allowing for a string URL and an optional click handler.
- This change improves the handling of image click behaviors, providing more versatility in component interactions.
- Updated relevant components including `BaseMediaDisplayItem`, `ExerciseDisplayItem`, `WorkoutDisplayItem`, and others to reflect this new structure.
* refactor: Simplify SurroundingElement implementation in BaseMediaDisplayItem
- Removed the SurroundingElement component and replaced it with a direct Anchor element in the BaseMediaDisplayItem component.
- This change enhances code clarity and reduces unnecessary abstraction, improving maintainability while preserving existing functionality.1 parent 4fde489 commit c62097c
File tree
4 files changed
+35
-39
lines changed- apps/frontend/app
- components
- routes
4 files changed
+35
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
361 | 360 | | |
362 | 361 | | |
363 | 362 | | |
364 | | - | |
| 363 | + | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
| |||
372 | 371 | | |
373 | 372 | | |
374 | 373 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | 374 | | |
384 | 375 | | |
385 | 376 | | |
| |||
388 | 379 | | |
389 | 380 | | |
390 | 381 | | |
391 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
392 | 387 | | |
393 | 388 | | |
394 | 389 | | |
| |||
440 | 435 | | |
441 | 436 | | |
442 | 437 | | |
443 | | - | |
| 438 | + | |
444 | 439 | | |
445 | 440 | | |
446 | 441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
482 | 484 | | |
483 | 485 | | |
484 | 486 | | |
| |||
501 | 503 | | |
502 | 504 | | |
503 | 505 | | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
508 | 512 | | |
509 | 513 | | |
510 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | 189 | | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
| |||
265 | 264 | | |
266 | 265 | | |
267 | 266 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
272 | 271 | | |
273 | 272 | | |
274 | 273 | | |
| |||
362 | 361 | | |
363 | 362 | | |
364 | 363 | | |
365 | | - | |
366 | | - | |
367 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
368 | 367 | | |
369 | 368 | | |
370 | 369 | | |
| |||
419 | 418 | | |
420 | 419 | | |
421 | 420 | | |
422 | | - | |
423 | | - | |
424 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
425 | 424 | | |
426 | 425 | | |
427 | 426 | | |
| |||
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
553 | 552 | | |
| 553 | + | |
554 | 554 | | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
| 555 | + | |
| 556 | + | |
559 | 557 | | |
560 | 558 | | |
561 | 559 | | |
| |||
0 commit comments