From 10e1fd9ba0e1ce0ed51916e327cc69f993404afb Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Sat, 30 Jan 2021 17:20:10 +0100 Subject: [PATCH] Fixed logo resize behaviour in services overview --- uffd/services/templates/overview.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uffd/services/templates/overview.html b/uffd/services/templates/overview.html index f9af4dd9..7027676c 100644 --- a/uffd/services/templates/overview.html +++ b/uffd/services/templates/overview.html @@ -14,7 +14,7 @@ <div class="card-body"> {% if service.logo_url %} {% if service.url and service.has_access %}<a href="{{ service.url }}" class="text-reset">{% endif %} - <img alt="Logo for {{ service.title }}" src="{{ service.logo_url }}" style="width: 100%; height: 10em; {{ 'filter: grayscale(100%);' if not service.has_access }}"> + <img alt="Logo for {{ service.title }}" src="{{ service.logo_url }}" style="width: 100%; height: 10em; object-fit: contain; {{ 'filter: grayscale(100%);' if not service.has_access }}"> {% if service.url and service.has_access %}</a>{% endif %} {% endif %} <h5 class="card-title"> -- GitLab