make whole card clickable
All checks were successful
Build and Deploy / build (push) Successful in 36s
Build and Deploy / deploy (push) Successful in 4s

This commit is contained in:
Tobias Brunner 2025-05-07 08:36:02 +02:00
parent b1680a11af
commit 1911a1211b
No known key found for this signature in database
7 changed files with 126 additions and 84 deletions

View file

@ -0,0 +1,9 @@
function cardClicked(event, url) {
// Don't navigate if the click was on a button or link
if (event.target.closest('.clickable-button') || event.target.closest('.clickable-link')) {
return;
}
// Navigate to the provider detail page
window.location.href = url;
}