Update drawer styles to fix issue with filter modal
This commit is contained in:
parent
23a91bcd23
commit
a0e3a8f56c
|
@ -1,5 +1,14 @@
|
||||||
<script>
|
<script>
|
||||||
import { Input, Layout, Icon, Popover, Tags, Tag, Body } from "@budibase/bbui"
|
import {
|
||||||
|
Input,
|
||||||
|
Layout,
|
||||||
|
Icon,
|
||||||
|
Popover,
|
||||||
|
Tags,
|
||||||
|
Tag,
|
||||||
|
Body,
|
||||||
|
Button,
|
||||||
|
} from "@budibase/bbui"
|
||||||
import CodeEditor from "components/common/CodeEditor/CodeEditor.svelte"
|
import CodeEditor from "components/common/CodeEditor/CodeEditor.svelte"
|
||||||
import { EditorModes } from "components/common/CodeEditor"
|
import { EditorModes } from "components/common/CodeEditor"
|
||||||
import SnippetDrawer from "./SnippetDrawer.svelte"
|
import SnippetDrawer from "./SnippetDrawer.svelte"
|
||||||
|
@ -128,7 +137,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="snippet-list">
|
<div class="snippet-list">
|
||||||
{#if enableSnippets}
|
{#if enableSnippets && filteredSnippets?.length}
|
||||||
{#each filteredSnippets as snippet}
|
{#each filteredSnippets as snippet}
|
||||||
<div
|
<div
|
||||||
class="snippet"
|
class="snippet"
|
||||||
|
@ -149,10 +158,14 @@
|
||||||
{:else}
|
{:else}
|
||||||
<div class="upgrade">
|
<div class="upgrade">
|
||||||
<Body size="S">
|
<Body size="S">
|
||||||
Create reusable blocks of JS that can be managed and updated all in
|
Snippets let you create reusable JS functions and values that can
|
||||||
one place with Snippets
|
all be managed in one place
|
||||||
</Body>
|
</Body>
|
||||||
<UpgradeButton />
|
{#if enableSnippets}
|
||||||
|
<Button cta on:click={createSnippet}>Create snippet</Button>
|
||||||
|
{:else}
|
||||||
|
<UpgradeButton />
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue