🐛 Fixed content shift(s) in editor

This commit is contained in:
Mawoka
2023-02-09 16:36:47 +01:00
parent 6e9d614f3f
commit abf1583a1d
5 changed files with 10 additions and 10 deletions
@@ -42,7 +42,7 @@
{#if Array.isArray(data.questions[selected_question].answers)}
{#each data.questions[selected_question].answers as answer, index}
<div
out:fade={{ duration: 150 }}
out:fade|local={{ duration: 150 }}
class="p-4 rounded-lg flex justify-center w-full transition relative"
class:bg-yellow-500={!reach(VotingQuestionSchema, 'answer').isValidSync(
answer.answer
@@ -96,7 +96,7 @@
<button
class="p-4 rounded-lg bg-transparent border-gray-500 border-2 hover:bg-gray-300 transition dark:hover:bg-gray-600"
type="button"
in:fade={{ duration: 150 }}
in:fade|local={{ duration: 150 }}
on:click={() => {
data.questions[selected_question].answers = [
...data.questions[selected_question].answers,