Display the client logo with a referrerpolicy set to "no-referrer"

Fixes #1768
This commit is contained in:
Quentin Gliech
2023-09-20 17:49:23 +02:00
parent b75462482b
commit f5f56682e4
5 changed files with 5 additions and 7 deletions
@@ -33,6 +33,7 @@ const ClientAvatar: React.FC<{
className={styles.avatar}
src={logoUri}
alt={name}
referrerPolicy="no-referrer"
style={
{
"--mas-avatar-size": size,
@@ -5,6 +5,7 @@ exports[`<ClientAvatar /> > renders client logo 1`] = `
<img
alt="Test Client"
class="_avatar_39aee3"
referrerpolicy="no-referrer"
src="https://www.testclient.com/logo.png"
style="--mas-avatar-size: 10px;"
/>
+1 -3
View File
@@ -22,9 +22,7 @@ limitations under the License.
<div class="w-96 mx-2 my-8 flex flex-col gap-6">
<div class="flex flex-col gap-2 text-center">
{% if client.logo_uri %}
<div class="consent-client-icon image">
<img src="{{ client.logo_uri }}" />
</div>
<img class="consent-client-icon image" referrerpolicy="no-referrer" src="{{ client.logo_uri }}" />
{% else %}
<div class="consent-client-icon generic">
{{ icon::web_browser() }}
+1 -1
View File
@@ -25,7 +25,7 @@ limitations under the License.
<div class="rounded-lg bg-grey-25 dark:bg-grey-450 p-2 flex items-center">
<div class="bg-white rounded w-16 h-16 overflow-hidden mx-auto">
{% if client.logo_uri %}
<img crossorigin="anonymous" class="w-16 h-16" src="{{ client.logo_uri }}" />
<img referrerpolicy="no-referrer" class="w-16 h-16" src="{{ client.logo_uri }}" />
{% endif %}
</div>
<h1 class="text-lg text-center font-medium flex-1"><a target="_blank" href="{{ client.client_uri }}" class="cpd-link" data-kind="primary">{{ client.client_name | default(value=client.client_id) }}</a></h1>
+1 -3
View File
@@ -22,9 +22,7 @@ limitations under the License.
<div class="w-96 mx-2 my-8 flex flex-col gap-6">
<div class="flex flex-col gap-2 text-center">
{% if client.logo_uri %}
<div class="consent-client-icon image">
<img src="{{ client.logo_uri }}" />
</div>
<img class="consent-client-icon image" referrerpolicy="no-referrer" src="{{ client.logo_uri }}" />
{% else %}
<div class="consent-client-icon generic">
{{ icon::web_browser() }}