🐛 Fixed some minor things

This commit is contained in:
Mawoka
2023-05-24 19:04:02 +02:00
parent d5cb5b1ff5
commit 5d76ee1e01
5 changed files with 22 additions and 32 deletions
@@ -4,7 +4,7 @@
- file, You can obtain one at https://mozilla.org/MPL/2.0/. - file, You can obtain one at https://mozilla.org/MPL/2.0/.
--> -->
<script lang="ts"> <script lang="ts">
import type { Markdown } from '../../types'; import type { Markdown } from '$lib/quiztivity/types';
import { marked } from 'marked'; import { marked } from 'marked';
import { browser } from '$app/environment'; import { browser } from '$app/environment';
@@ -4,7 +4,7 @@
- file, You can obtain one at https://mozilla.org/MPL/2.0/. - file, You can obtain one at https://mozilla.org/MPL/2.0/.
--> -->
<script lang="ts"> <script lang="ts">
import type { Memory } from '../../types'; import type { Memory } from '$lib/quiztivity/types';
import { getLocalization } from '$lib/i18n'; import { getLocalization } from '$lib/i18n';
import BrownButton from '$lib/components/buttons/brown.svelte'; import BrownButton from '$lib/components/buttons/brown.svelte';
import { flip } from 'svelte/animate'; import { flip } from 'svelte/animate';
@@ -3,8 +3,3 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this - License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at https://mozilla.org/MPL/2.0/. - file, You can obtain one at https://mozilla.org/MPL/2.0/.
--> -->
<script lang="ts">
console.log('Hello World!');
</script>
<p>hkgfdasuvzfgdhagivk!</p>
+2 -7
View File
@@ -96,9 +96,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="flex justify-center"> <div class="flex flex-row gap-2 w-full p-2">
<div>
<div class="flex flex-row gap-2">
<BrownButton <BrownButton
on:click={() => { on:click={() => {
selected_type = null; selected_type = null;
@@ -114,13 +112,10 @@
> >
<BrownButton <BrownButton
on:click={move_slide_right} on:click={move_slide_right}
disabled={selected_slide === null || disabled={selected_slide === null || selected_slide === data.pages.length - 1}
selected_slide === data.pages.length - 1}
>{$t('quiztivity.editor.move_right')}</BrownButton >{$t('quiztivity.editor.move_right')}</BrownButton
> >
</div> </div>
</div>
</div>
<div class="flex justify-center mt-6"> <div class="flex justify-center mt-6">
<div class="grid grid-cols-6 gap-6 w-11/12"> <div class="grid grid-cols-6 gap-6 w-11/12">
{#each data.pages as page, i (page.id)} {#each data.pages as page, i (page.id)}
+1 -1
View File
@@ -7,7 +7,7 @@
import Editor from '$lib/editor.svelte'; import Editor from '$lib/editor.svelte';
import { getLocalization } from '$lib/i18n'; import { getLocalization } from '$lib/i18n';
import { navbarVisible } from '$lib/stores'; import { navbarVisible } from '$lib/stores';
import { QuizQuestionType } from '../../lib/quiz_types'; import { QuizQuestionType } from '$lib/quiz_types';
navbarVisible.set(false); navbarVisible.set(false);