diff --git a/webapp/components/Editor/Editor.vue b/webapp/components/Editor/Editor.vue index 8d3ce281b..2cdff0814 100644 --- a/webapp/components/Editor/Editor.vue +++ b/webapp/components/Editor/Editor.vue @@ -342,4 +342,37 @@ li > p { margin: 0 0 $space-x-small; } } + +.embed-container { + position: relative; + border-radius: $border-radius-base; + border: 1px solid $color-neutral-70; + padding: $space-x-small; + overflow: hidden; +} + +.embed-overlay { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + + padding: $space-large; + background-color: $color-neutral-100; +} + +.embed-buttons { + button { + margin-right: $space-small; + } +} + +.embed-checkbox { + display: flex; + + input { + margin-right: $space-small; + } +} diff --git a/webapp/components/Editor/nodes/Embed.js b/webapp/components/Editor/nodes/Embed.js index 4be49ee0c..92aee59fc 100644 --- a/webapp/components/Editor/nodes/Embed.js +++ b/webapp/components/Editor/nodes/Embed.js @@ -4,35 +4,28 @@ import { compileToFunctions } from 'vue-template-compiler' import { mapGetters, mapMutations } from 'vuex' import { allowEmbedIframesMutation } from '~/graphql/User.js' -const template = ` - - - - Deine Daten sind noch nicht weitergegeben. Wenn Du die das jetzt ansiehst dann werden auch Daten mit dem Anbieter ({{embedPublisher}}) ausgetauscht! - Du verlässt jetzt Human Connection! Du wirst zu ({{embedPublisher}}) weitergeleitet! - jetzt ansehen - Webseite aufrufen -

- - - - automatisches Einbinden zulassen? | - - - automatisches Einbinden zugelassen | - -

- - dataEmbedUrl -
-

-

{{ embedTitle }}
-
{{ embedDescription }}
- - {{ dataEmbedUrl }} - - +const template = ` + + + dataEmbedUrl +
+

+

{{ embedTitle }}
+
{{ embedDescription }}
+ + {{ dataEmbedUrl }} + ` const compiledTemplate = compileToFunctions(template) @@ -166,7 +159,6 @@ export default class Embed extends Node { } else { this.submit(false) } - this.showOverlay = false }, allowEmbedTemporar(xx) { if (!this.isOnlyLink) {