allow ppl to expand and see the actual pfp

master
Aevann 2023-10-27 01:19:31 +03:00
parent bd941d3a3c
commit ba1d88f4ae
1 changed files with 5 additions and 4 deletions

View File

@ -7,6 +7,7 @@
{% set ns = namespace() %}
{% set pfp = u.highres if (u.highres and can_see(v, u) and u.profileurl == u.profile_url) else u.profile_url %}
{% set pfp_expanded = u.highres if (u.highres and can_see(v, u)) else u.profile_url %}
{% block desktopUserBanner %}
<div class="row d-mob-none">
@ -18,9 +19,9 @@
<div class="d-md-flex text-center text-md-left">
<div id="profile--pfp" {% if u.hat_active(v)[0] %}class="profile--pfp--hat hat"{% endif %}>
<a rel="nofollow noopener" href="{{pfp}}" class="profile-pic-100-wrapper">
<img data-nonce="{{g.nonce}}" data-onclick="expandImage('{{pfp}}')" loading="lazy" src="{{pfp}}" class="profile-pic profile-pic-100 mb-5">
<img data-nonce="{{g.nonce}}" data-onclick="expandImage('{{pfp_expanded}}')" loading="lazy" src="{{pfp}}" class="profile-pic profile-pic-100 mb-5">
{% if u.hat_active(v)[0] -%}
<img data-nonce="{{g.nonce}}" data-onclick="expandImage('{{pfp}}')" class="profile-pic-100-hat hat" loading="lazy" src="{{u.hat_active(v)[0]}}?x=6" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{u.hat_active(v)[1]}}">
<img data-nonce="{{g.nonce}}" data-onclick="expandImage('{{pfp_expanded}}')" class="profile-pic-100-hat hat" loading="lazy" src="{{u.hat_active(v)[0]}}?x=6" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{u.hat_active(v)[1]}}">
{%- endif %}
</a>
</div>
@ -325,9 +326,9 @@
<div class="col">
<div style="margin-top: -34px" id="profile-mobile--pfp">
<a rel="nofollow noopener" href="{{pfp}}" class="profile-pic-65-wrapper">
<img data-nonce="{{g.nonce}}" data-onclick="expandImage('{{pfp}}')" loading="lazy" src="{{pfp}}" class="profile-pic-65 bg-white mb-2">
<img data-nonce="{{g.nonce}}" data-onclick="expandImage('{{pfp_expanded}}')" loading="lazy" src="{{pfp}}" class="profile-pic-65 bg-white mb-2">
{% if u.hat_active(v)[0] -%}
<img data-nonce="{{g.nonce}}" data-onclick="expandImage('{{pfp}}')" class="profile-pic-65-hat hat" loading="lazy" src="{{u.hat_active(v)[0]}}?x=6">
<img data-nonce="{{g.nonce}}" data-onclick="expandImage('{{pfp_expanded}}')" class="profile-pic-65-hat hat" loading="lazy" src="{{u.hat_active(v)[0]}}?x=6">
{%- endif %}
</a>
</div>