From 4155d029bb1eb21964d27165d9ff46878f891b5f Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Wed, 5 Aug 2026 17:41:49 +0200 Subject: [PATCH] web clickable photo --- src/api/templates/contact.html | 38 +++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/src/api/templates/contact.html b/src/api/templates/contact.html index ca142b2..fa88da5 100644 --- a/src/api/templates/contact.html +++ b/src/api/templates/contact.html @@ -190,6 +190,36 @@ font-style: italic; font-size: 0.875rem; } + + .photo-dialog { + border: none; + border-radius: 12px; + padding: 0; + max-width: 90vw; + max-height: 90vh; + background: transparent; + } + + .photo-dialog::backdrop { + background: rgba(0, 0, 0, 0.85); + } + + .photo-dialog img { + display: block; + max-width: 90vw; + max-height: 85vh; + border-radius: 8px; + object-fit: contain; + } + + .contact-photo { + cursor: pointer; + transition: transform 0.15s ease; + } + + .contact-photo:hover { + transform: scale(1.03); + } @@ -211,7 +241,7 @@
{% if contact.photo_url %} - Foto + Foto {% endif %} {% if show_all and contact.account %} Account: {{ contact.account }} @@ -320,5 +350,11 @@ {% endif %}
+ + {% if contact.photo_url %} + + Foto + + {% endif %}