From f626508ed065730899a382441872fd4f6294ef04 Mon Sep 17 00:00:00 2001 From: Alies Lapatsin Date: Wed, 22 Jan 2020 10:37:56 +0400 Subject: [PATCH] #2 Make iframe more responsive --- resources/js/components/FormField.vue | 7 +++---- resources/js/components/UnlayerEditor.vue | 22 +++++++++++++++++----- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/resources/js/components/FormField.vue b/resources/js/components/FormField.vue index 79aca32..03eabcc 100644 --- a/resources/js/components/FormField.vue +++ b/resources/js/components/FormField.vue @@ -18,13 +18,12 @@ @@ -36,7 +35,7 @@ import EmailEditor from './UnlayerEditor' import { FormField, HandlesValidationErrors } from 'laravel-nova' - const defaultHeight = '500px'; + const defaultHeight = '700px'; export default { mixins: [FormField, HandlesValidationErrors], @@ -48,7 +47,7 @@ props: ['resourceName', 'resourceId', 'field'], computed: { - editorHeight() { + containerHeight: function () { return this.field.height || defaultHeight; }, }, diff --git a/resources/js/components/UnlayerEditor.vue b/resources/js/components/UnlayerEditor.vue index 444426d..d9c4d18 100644 --- a/resources/js/components/UnlayerEditor.vue +++ b/resources/js/components/UnlayerEditor.vue @@ -1,5 +1,5 @@ + + +