Autofocus search field and layout

This commit is contained in:
Alexandre Iooss 2020-04-10 22:38:35 +02:00
parent 5c3cc607e8
commit 0608ebd9f2
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 3 additions and 4 deletions

View File

@ -13,8 +13,7 @@
<div class="col-xl-5" id="note_infos_div">
<div class="card border-success shadow mb-4 text-center">
<img src="/media/pic/default.png"
id="profile_pic" alt=""
class="img-thumbnail">
id="profile_pic" alt="" class="card-img-top">
<div class="card-body text-center">
<span id="user_note"></span>
</div>
@ -35,9 +34,9 @@
</div>
{# User search with autocompletion #}
<div class="card-footer bg-white">
<div class="card-body p-0">
<input class="form-control mx-auto d-block"
placeholder="{% trans "Name or alias" %}" type="text" id="note" />
placeholder="{% trans "Name or alias" %}" type="text" id="note" autofocus />
</div>
</div>
</div>