Hide question description when correcting to gain screen space
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2022-09-23 09:59:23 +02:00
commit cee08fdb94
2 changed files with 9 additions and 1 deletions

View file

@ -48,8 +48,14 @@
}
cts = cts;
});
let nodescription = false;
let y = 0;
$: nodescription = y > 10;
</script>
<svelte:window bind:scrollY={y} />
{#await surveyP then survey}
{#await getQuestion(rid)}
<div class="text-center">
@ -82,6 +88,7 @@
<div class="card sticky-top">
<QuestionHeader
{question}
nodescription={nodescription}
>
<button
class="btn btn-sm btn-link float-start"