From 7a7c6e30e3633c31114fa388ac0f4327af9958dc Mon Sep 17 00:00:00 2001 From: Ruslan Date: Tue, 28 Apr 2026 12:48:59 +0000 Subject: [PATCH] fix: tile-info-area shares space between credentials+comment, scroll restored --- app/static/style.css | 14 ++++++++---- app/templates/dashboard.html | 42 +++++++++++++++++++----------------- 2 files changed, 32 insertions(+), 24 deletions(-) diff --git a/app/static/style.css b/app/static/style.css index 432f4d9..8f8ea8f 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -355,7 +355,7 @@ button { border: 1px solid #c7d9ea; border-radius: 8px; padding: 0.5rem 0.75rem 0.55rem; - margin: 0.65rem 0 0.1rem; + margin: 0 0 0.5rem; display: flex; flex-direction: column; gap: 0.3rem; @@ -461,15 +461,21 @@ button { margin-top: 0.45rem; color: #4b6178; } +.tile-info-area { + flex: 1; + min-height: 0; + display: flex; + flex-direction: column; + gap: 0; +} .tile-comment { display: block; flex: 1; min-height: 0; - overflow: hidden; + overflow-y: auto; + overflow-x: hidden; line-height: 1.35; 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 strong { diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 0186ddf..c67eadc 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -83,30 +83,32 @@ icon

{{ service.name }}

- {% if service.svc_login or service.svc_password %} -
- {% if service.svc_login %} -
- Логин - {{ service.svc_login }} - +
+ {% if service.svc_login or service.svc_password %} +
+ {% if service.svc_login %} +
+ Логин + {{ service.svc_login }} + +
+ {% endif %} + {% if service.svc_password %} +
+ Пароль + {{ service.svc_password }} + +
+ {% endif %} + {% if service.svc_cred_hint %} +

{{ service.svc_cred_hint }}

+ {% endif %}
{% endif %} - {% if service.svc_password %} -
- Пароль - {{ service.svc_password }} - -
- {% endif %} - {% if service.svc_cred_hint %} -

{{ service.svc_cred_hint }}

+ {% if service.comment %} +
{{ service_comment_html.get(service.id, '') }}
{% endif %}
- {% endif %} - {% if service.comment %} -
{{ service_comment_html.get(service.id, '') }}
- {% endif %} {% if svc_cats %}
{% for category in svc_cats %}