diff --git a/client/src/components/Sharing/Embeds/WorkflowEmbed.vue b/client/src/components/Sharing/Embeds/WorkflowEmbed.vue
index 7e7ef39692bc..538ca956c8ea 100644
--- a/client/src/components/Sharing/Embeds/WorkflowEmbed.vue
+++ b/client/src/components/Sharing/Embeds/WorkflowEmbed.vue
@@ -27,6 +27,7 @@ const settings = reactive({
initialX: -20,
initialY: -20,
zoom: 1,
+ applyStyle: true,
});
function onChangePosition(event: Event, xy: "x" | "y") {
@@ -55,7 +56,16 @@ const embedUrl = computed(() => {
return url;
});
-const embed = computed(() => ``);
+const embedStyle = computed(() => {
+ if (settings.applyStyle) {
+ return ' style="width: 100%; height: 700px; border: none;" ';
+ } else {
+ return " ";
+ }
+});
+const embed = computed(
+ () => ``
+);
// These Embed settings are not reactive, to we have to key them
const embedKey = computed(() => `zoom: ${settings.zoom}, x: ${settings.initialX}, y: ${settings.initialY}`);
@@ -117,6 +127,12 @@ const clipboardTitle = computed(() => (copied.value ? "Copied!" : "Copy URL"));
class="zoom-control"
@onZoom="(level) => (settings.zoom = level)" />
+
+