fix: tile-info-area shares space between credentials+comment, scroll restored
This commit is contained in:
+10
-4
@@ -355,7 +355,7 @@ button {
|
|||||||
border: 1px solid #c7d9ea;
|
border: 1px solid #c7d9ea;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 0.5rem 0.75rem 0.55rem;
|
padding: 0.5rem 0.75rem 0.55rem;
|
||||||
margin: 0.65rem 0 0.1rem;
|
margin: 0 0 0.5rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.3rem;
|
gap: 0.3rem;
|
||||||
@@ -461,15 +461,21 @@ button {
|
|||||||
margin-top: 0.45rem;
|
margin-top: 0.45rem;
|
||||||
color: #4b6178;
|
color: #4b6178;
|
||||||
}
|
}
|
||||||
|
.tile-info-area {
|
||||||
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0;
|
||||||
|
}
|
||||||
.tile-comment {
|
.tile-comment {
|
||||||
display: block;
|
display: block;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
line-height: 1.35;
|
line-height: 1.35;
|
||||||
padding-right: 0.2rem;
|
padding-right: 0.2rem;
|
||||||
mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
|
|
||||||
-webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
|
|
||||||
}
|
}
|
||||||
.tile-comment b,
|
.tile-comment b,
|
||||||
.tile-comment strong {
|
.tile-comment strong {
|
||||||
|
|||||||
@@ -83,6 +83,7 @@
|
|||||||
<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">
|
||||||
{% 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" onclick="event.preventDefault();event.stopPropagation()">
|
||||||
{% if service.svc_login %}
|
{% if service.svc_login %}
|
||||||
@@ -107,6 +108,7 @@
|
|||||||
{% if service.comment %}
|
{% if service.comment %}
|
||||||
<div class="tile-comment">{{ service_comment_html.get(service.id, '') }}</div>
|
<div class="tile-comment">{{ service_comment_html.get(service.id, '') }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% if svc_cats %}
|
{% if svc_cats %}
|
||||||
<div class="service-categories">
|
<div class="service-categories">
|
||||||
{% for category in svc_cats %}
|
{% for category in svc_cats %}
|
||||||
|
|||||||
Reference in New Issue
Block a user