ui: fixes
This commit is contained in:
		@@ -1,7 +1,6 @@
 | 
			
		||||
<script lang="ts">
 | 
			
		||||
	import { browser } from '$app/env';
 | 
			
		||||
import { addToast } from '$lib/store';
 | 
			
		||||
	import { toast } from '@zerodevx/svelte-toast';
 | 
			
		||||
	import { addToast } from '$lib/store';
 | 
			
		||||
	let showPassword = false;
 | 
			
		||||
 | 
			
		||||
	export let value: string;
 | 
			
		||||
@@ -10,7 +9,7 @@ import { addToast } from '$lib/store';
 | 
			
		||||
	export let readonly = false;
 | 
			
		||||
	export let textarea = false;
 | 
			
		||||
	export let required = false;
 | 
			
		||||
	export let pattern: string|null|undefined = null;
 | 
			
		||||
	export let pattern: string | null | undefined = null;
 | 
			
		||||
	export let id: string;
 | 
			
		||||
	export let name: string;
 | 
			
		||||
	export let placeholder = '';
 | 
			
		||||
@@ -23,7 +22,7 @@ import { addToast } from '$lib/store';
 | 
			
		||||
			navigator.clipboard.writeText(value);
 | 
			
		||||
			addToast({
 | 
			
		||||
				message: 'Copied to clipboard.',
 | 
			
		||||
				type: 'success',
 | 
			
		||||
				type: 'success'
 | 
			
		||||
			});
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -17,9 +17,10 @@
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
<div
 | 
			
		||||
	class:tooltip-right={dataTooltip}
 | 
			
		||||
	class:tooltip={dataTooltip}
 | 
			
		||||
	class:text-center={isCenter}
 | 
			
		||||
	data-tooltip={dataTooltip}
 | 
			
		||||
	data-tip={dataTooltip}
 | 
			
		||||
	class="flex justify-center"
 | 
			
		||||
>
 | 
			
		||||
	<div
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@
 | 
			
		||||
	class:alert-error={type === 'error'}
 | 
			
		||||
	class:alert-info={type === 'info'}
 | 
			
		||||
>
 | 
			
		||||
	{#if type === 'success'}
 | 
			
		||||
	<!-- {#if type === 'success'}
 | 
			
		||||
		<svg
 | 
			
		||||
			xmlns="http://www.w3.org/2000/svg"
 | 
			
		||||
			class="stroke-current flex-shrink-0 h-6 w-6"
 | 
			
		||||
@@ -47,6 +47,6 @@
 | 
			
		||||
				d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
 | 
			
		||||
			/></svg
 | 
			
		||||
		>
 | 
			
		||||
	{/if}
 | 
			
		||||
	{/if} -->
 | 
			
		||||
	<slot />
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,6 @@
 | 
			
		||||
	import { dev } from '$app/env';
 | 
			
		||||
	import { get, post } from '$lib/api';
 | 
			
		||||
	import { addToast, appSession, features } from '$lib/store';
 | 
			
		||||
	import { toast } from '@zerodevx/svelte-toast';
 | 
			
		||||
	import { asyncSleep, errorNotification } from '$lib/common';
 | 
			
		||||
	import { onMount } from 'svelte';
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user