fix: link overlay pattern — credentials never trigger navigation
This commit is contained in:
+14
-5
@@ -347,8 +347,7 @@ button {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
.tile-wrap {
|
.tile-wrap {
|
||||||
display: flex;
|
position: relative;
|
||||||
flex-direction: column;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.svc-credentials {
|
.svc-credentials {
|
||||||
@@ -361,6 +360,8 @@ button {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.3rem;
|
gap: 0.3rem;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
}
|
}
|
||||||
.svc-cred-row {
|
.svc-cred-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -413,10 +414,15 @@ button {
|
|||||||
.svc-cred-copy.copied::before { content: "\2713"; }
|
.svc-cred-copy.copied::before { content: "\2713"; }
|
||||||
.svc-cred-copy:hover:not(.copied) { background: #e6f0f9; border-color: #7aabcf; }
|
.svc-cred-copy:hover:not(.copied) { background: #e6f0f9; border-color: #7aabcf; }
|
||||||
|
|
||||||
|
.tile-link {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 1;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
.tile {
|
.tile {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
text-decoration: none;
|
|
||||||
background: var(--card);
|
background: var(--card);
|
||||||
color: inherit;
|
color: inherit;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
@@ -424,11 +430,14 @@ button {
|
|||||||
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
|
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
|
transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
|
||||||
flex: 1;
|
height: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
z-index: 0;
|
||||||
}
|
}
|
||||||
.tile:hover {
|
.tile-wrap:hover .tile {
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
border-color: #bdd3e6;
|
border-color: #bdd3e6;
|
||||||
box-shadow: 0 14px 26px rgba(15, 64, 103, 0.12);
|
box-shadow: 0 14px 26px rgba(15, 64, 103, 0.12);
|
||||||
|
|||||||
@@ -78,14 +78,15 @@
|
|||||||
{% for service in services %}
|
{% for service in services %}
|
||||||
{% set svc_cats = service_categories.get(service.id, []) %}
|
{% set svc_cats = service_categories.get(service.id, []) %}
|
||||||
<div class="tile-wrap">
|
<div class="tile-wrap">
|
||||||
<a class="tile" href="/go/{{ service.slug }}">
|
<a class="tile-link" href="/go/{{ service.slug }}" aria-label="{{ service.name }}"></a>
|
||||||
|
<div class="tile">
|
||||||
<div class="tile-icon-box">
|
<div class="tile-icon-box">
|
||||||
<img class="tile-icon" src="{{ service.icon_path or '/static/service-placeholder.svg' }}" alt="icon" />
|
<img class="tile-icon" src="{{ service.icon_path or '/static/service-placeholder.svg' }}" alt="icon" />
|
||||||
</div>
|
</div>
|
||||||
<h3>{{ service.name }}</h3>
|
<h3>{{ service.name }}</h3>
|
||||||
<div class="tile-info-area">
|
<div class="tile-info-area">
|
||||||
{% if service.svc_login or service.svc_password %}
|
{% if service.svc_login or service.svc_password %}
|
||||||
<div class="svc-credentials" onclick="event.preventDefault();event.stopPropagation()">
|
<div class="svc-credentials">
|
||||||
{% if service.svc_login %}
|
{% if service.svc_login %}
|
||||||
<div class="svc-cred-row">
|
<div class="svc-cred-row">
|
||||||
<span class="svc-cred-label">Логин</span>
|
<span class="svc-cred-label">Логин</span>
|
||||||
@@ -116,7 +117,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="tile">
|
<div class="tile">
|
||||||
|
|||||||
Reference in New Issue
Block a user