1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00
budibase/packages/builder/src/components/automation/SetupPanel/CodeEditorModal.svelte

37 lines
689 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}>
2021-03-27 03:56:34 +13:00
<ModalContent
size="XL"
2021-03-27 03:56:34 +13:00
title="Edit Code"
showConfirmButton={false}
2021-05-11 01:50:37 +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>