mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 00:36:01 +00:00
SYNC: Merge branch 'feature/audit-logs'
This commit is contained in:
committed by
Diflow
parent
e3c6d05a0a
commit
90bbdd563b
33
packages/web/src/elements/Chip.svelte
Normal file
33
packages/web/src/elements/Chip.svelte
Normal file
@@ -0,0 +1,33 @@
|
||||
<script lang="ts">
|
||||
import FontIcon from "../icons/FontIcon.svelte";
|
||||
|
||||
export let onClose;
|
||||
</script>
|
||||
|
||||
<div class="chip">
|
||||
<slot />
|
||||
{#if onClose}
|
||||
<span class="close" on:click={onClose}><FontIcon icon="icon close" /></span>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.chip {
|
||||
display: inline-block;
|
||||
padding: 0.25em 0.5em;
|
||||
border-radius: 1em;
|
||||
background-color: var(--theme-bg-2);
|
||||
color: var(--theme-text-1);
|
||||
font-size: 0.875em;
|
||||
cursor: pointer;
|
||||
margin: 2px;
|
||||
}
|
||||
.chip .close {
|
||||
margin-left: 0.2em;
|
||||
color: var(--theme-text-2);
|
||||
cursor: pointer;
|
||||
}
|
||||
.chip .close:hover {
|
||||
color: var(--theme-font-hover);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user