1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00
budibase/packages/builder/src/components/automation/SetupPanel/CodeEditorModal.svelte

36 lines
687 B
Svelte
Raw Normal View History

2021-03-27 03:56:34 +13:00
<script>
import { Button, Modal, ModalContent } from "@budibase/bbui"
let modal
export const show = () => {
modal.show()
}
export const hide = () => {
modal.hide()
}
</script>
<Modal bind:this={modal} width="60%">
<ModalContent
title="Edit Code"
showConfirmButton={false}
2021-05-04 20:55:14 +12:00
showCancelButton={false}
>
2021-03-27 03:56:34 +13:00
<div class="container">
<slot />
</div>
</ModalContent>
</Modal>
<Button primary on:click={show}>Edit Code</Button>
<style>
.container :global(section > header) {
/* Fix margin defined in BBUI as L rather than XL */
margin-bottom: var(--spacing-xl);
}
.container :global(textarea) {
min-height: 60px;
}
</style>