mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 01:55:59 +00:00
moved some widgets to elements
This commit is contained in:
38
packages/web/src/elements/ErrorInfo.svelte
Normal file
38
packages/web/src/elements/ErrorInfo.svelte
Normal file
@@ -0,0 +1,38 @@
|
||||
<script lang="ts">
|
||||
import FontIcon from '../icons/FontIcon.svelte';
|
||||
|
||||
export let message;
|
||||
export let icon = 'img error';
|
||||
export let isSmall = false;
|
||||
</script>
|
||||
|
||||
{#if isSmall}
|
||||
<div class="container-small">
|
||||
<FontIcon {icon} />
|
||||
{message}
|
||||
</div>
|
||||
{:else}
|
||||
<div class="container">
|
||||
<div class="icon">
|
||||
<FontIcon {icon} />
|
||||
</div>
|
||||
{message}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.icon {
|
||||
font-size: 20pt;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.container-small {
|
||||
display: flex;
|
||||
margin-right: 10px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user