Improve responsiveness
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2022-03-02 04:38:08 +01:00
parent f3e207c019
commit e9460527b7

View File

@ -162,7 +162,7 @@
<a href="surveys/{survey.id}/admin" class="btn btn-primary ms-1 float-end" title="Aller à l'interface d'administration"><i class="bi bi-pencil"></i></a> <a href="surveys/{survey.id}/admin" class="btn btn-primary ms-1 float-end" title="Aller à l'interface d'administration"><i class="bi bi-pencil"></i></a>
<a href="surveys/{survey.id}/responses" class="btn btn-success ms-1 float-end" title="Voir les réponses"><i class="bi bi-files"></i></a> <a href="surveys/{survey.id}/responses" class="btn btn-success ms-1 float-end" title="Voir les réponses"><i class="bi bi-files"></i></a>
{/if} {/if}
<div class="d-flex align-items-center mb-5"> <div class="d-flex align-items-center mb-3 mb-md-4 mb-lg-5">
<h2> <h2>
<a href="surveys/" class="text-muted" style="text-decoration: none">&lt;</a> <a href="surveys/" class="text-muted" style="text-decoration: none">&lt;</a>
{survey.title} {survey.title}
@ -219,18 +219,29 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="offset-md-1 col-md-10 offset-lg-2 col-lg-8 offset-xl-3 col-xl-6"> <div class="offset-md-1 col-md-10 offset-lg-2 col-lg-8 offset-xl-3 col-xl-6 mb-4">
<div class="input-group">
<textarea <textarea
id="askquestion" id="askquestion"
class="form-control" class="form-control"
bind:value={myQuestion} bind:value={myQuestion}
autofocus autofocus
placeholder="Remarques, soucis, choses pas claires ? Demandez !" placeholder="Remarques, soucis, choses pas claires? Demandez!"
></textarea> ></textarea>
<button
class="d-sm-none btn btn-primary"
disabled={!myQuestion || submitQuestionInProgress}
>
{#if submitQuestionInProgress}
<div class="spinner-border spinner-border-sm me-1" role="status"></div>
{/if}
Poser cette question
</button>
</div>
</div> </div>
</div> </div>
{#if myQuestion} {#if myQuestion}
<div class="text-center mt-2"> <div class="d-none d-sm-block text-center mb-4">
<button <button
class="btn btn-primary" class="btn btn-primary"
disabled={submitQuestionInProgress} disabled={submitQuestionInProgress}