only show "upload profile background" if user on desktop or uses transparent theme to prevent confusion

pull/49/head
Aevann1 2022-12-05 16:30:55 +02:00
parent ab7144d94a
commit 99c12a74ad
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@
<button type="button" class="btn btn-secondary" onclick="toggle()" {% if v.id == u.id %}style="margin-bottom:0!important;padding:0.3rem 0.75rem!important"{% endif %}>Toggle Anthem</button>
{% endif %}
{% if v and v.id == u.id %}
{% if v and v.id == u.id and (v.profile_background or v.theme == 'transparent') %}
<div>
<form class="mt-3" id="upload-profile-background-mobile" action="/settings/profile_background" method="post" enctype="multipart/form-data">
<input type="hidden" name="formkey" value="{{v|formkey}}">