forked from MapComplete/MapComplete
Studio+UX: various UX tweaks after usertesting
This commit is contained in:
parent
4219b23af1
commit
3a915bdf25
31 changed files with 2476 additions and 108 deletions
|
|
@ -0,0 +1,30 @@
|
|||
<script lang="ts">
|
||||
import type { ConversionMessage } from "../../Models/ThemeConfig/Conversion/Conversion";
|
||||
import { ExclamationTriangleIcon } from "@babeard/svelte-heroicons/solid";
|
||||
import { ExclamationCircleIcon, ExclamationIcon, InformationCircleIcon } from "@rgossiaux/svelte-heroicons/solid";
|
||||
|
||||
/**
|
||||
* Single conversion message, styled depending on the type
|
||||
*/
|
||||
export let message: ConversionMessage;
|
||||
</script>
|
||||
|
||||
{#if message.level === "error"}
|
||||
<div class="alert flex justify-between items-center">
|
||||
<ExclamationIcon class="w-6 h-6 mx-1 shrink-0" />
|
||||
{message.message}
|
||||
<div/>
|
||||
</div>
|
||||
{:else if message.level === "warning"}
|
||||
<div class="warning flex justify-between items-center">
|
||||
<ExclamationIcon class="w-6 h-6 mx-1 shrink-0" />
|
||||
{message.message}
|
||||
<div/>
|
||||
</div>
|
||||
{:else if message.level === "information"}
|
||||
<div class="information flex justify-between items-center">
|
||||
<InformationCircleIcon class="w-6 h-6 mx-1 shrink-0" />
|
||||
{message.message}
|
||||
<div/>
|
||||
</div>
|
||||
{/if}
|
||||
Loading…
Add table
Add a link
Reference in a new issue