make whole card clickable
This commit is contained in:
parent
b1680a11af
commit
1911a1211b
7 changed files with 126 additions and 84 deletions
|
@ -12322,4 +12322,20 @@ a.btn:focus {
|
|||
|
||||
.page-content .page-action a {
|
||||
text-decoration: none
|
||||
}
|
||||
|
||||
.clickable-card {
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.clickable-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.clickable-button {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
9
hub/services/static/js/servala-addons.js
Normal file
9
hub/services/static/js/servala-addons.js
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue