Merge branch 'beta' into 'master'

Remove padding around note picture

See merge request bde/nk20!111
This commit is contained in:
ynerant 2020-09-05 19:41:28 +02:00
commit 2f6c7ed156
2 changed files with 7 additions and 1 deletions

View File

@ -109,6 +109,12 @@ class Note(PolymorphicModel):
# Save alias
a.note = self
a.save(force_insert=True)
else:
# Check if the name of the note changed without changing the normalized form of the alias
alias = Alias.objects.get(normalized_name=Alias.normalize(str(self)))
if alias.name != str(self):
alias.name = str(self)
alias.save()
def clean(self, *args, **kwargs):
"""

View File

@ -37,7 +37,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
<div class="row">
{# Preview note profile (picture, username and balance) #}
<div class="col-md-3" id="note_infos_div">
<div class="card bg-light border-success shadow mb-4 text-center">
<div class="card bg-light border-success shadow mb-4 pt-4 text-center">
<a id="profile_pic_link" href="#"><img src="{% static "member/img/default_picture.png" %}"
id="profile_pic" alt="" class="img-fluid rounded mx-auto"></a>
<div class="card-body text-center">