Made editor more user-friendly

This commit is contained in:
Mawoka
2023-10-04 11:51:24 +02:00
parent 28676787ea
commit 47abc28440
8 changed files with 80 additions and 22 deletions
+11 -1
View File
@@ -18,6 +18,7 @@ SPDX-License-Identifier: MPL-2.0
import StartGamePopup from '$lib/dashboard/start_game.svelte';
import Analytics from './Analytics.svelte';
import MediaComponent from '$lib/editor/MediaComponent.svelte';
import { createTippy } from 'svelte-tippy';
// import GrayButton from "$lib/components/buttons/gray.svelte";
@@ -31,6 +32,11 @@ SPDX-License-Identifier: MPL-2.0
let items_to_show = [];
let all_items: Array<any>;
let fuse;
const tippy = createTippy({
arrow: true,
animation: 'perspective-subtle',
placement: 'bottom'
});
let id_to_position_map = {};
@@ -117,7 +123,11 @@ SPDX-License-Identifier: MPL-2.0
</button>-->
<div class="w-full grid lg:grid-cols-4 gap-2 grid-cols-2 px-4">
{#if create_button_clicked}
<div class="flex gap-2" transition:fly={{ y: 10 }}>
<div
class="flex gap-2"
transition:fly={{ y: 10 }}
use:tippy={{ content: 'Unsure? Choose "Quiz".' }}
>
<BrownButton href="/create">{$t('words.quiz')}</BrownButton>
<BrownButton href="/quiztivity/create">{$t('words.quiztivity')}</BrownButton
>