From 8c78fef45798cf98cedb96c0ef1d7fc003ffe36e Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Wed, 2 Oct 2019 16:55:30 +0200 Subject: [PATCH] toggle preview image with showEmbed --- webapp/components/Editor/Editor.vue | 2 +- webapp/components/Editor/nodes/Embed.js | 30 +++++-------------------- 2 files changed, 7 insertions(+), 25 deletions(-) diff --git a/webapp/components/Editor/Editor.vue b/webapp/components/Editor/Editor.vue index 73ca5fcde..0f96607ee 100644 --- a/webapp/components/Editor/Editor.vue +++ b/webapp/components/Editor/Editor.vue @@ -356,7 +356,6 @@ li > p { .embed-content { width: 100%; height: 100%; - cursor: pointer; h4 { margin: $space-small 0 0 $space-small; @@ -372,6 +371,7 @@ li > p { .embed-preview-image { width: 100%; height: auto; + cursor: pointer; } .embed-html { diff --git a/webapp/components/Editor/nodes/Embed.js b/webapp/components/Editor/nodes/Embed.js index bbac8fad5..72c59c32b 100644 --- a/webapp/components/Editor/nodes/Embed.js +++ b/webapp/components/Editor/nodes/Embed.js @@ -6,9 +6,9 @@ import { allowEmbedIframesMutation } from '~/graphql/User.js' const template = ` -
-
- +
+
+

{{embedTitle}}

{{embedDescription}}

{{dataEmbedUrl}} @@ -17,7 +17,7 @@ const template = `

Achte auf deine Daten!

Deine Daten sind noch nicht weitergegeben. Wenn Du die das jetzt ansiehst dann werden auch Daten mit dem Anbieter ({{embedPublisher}}) ausgetauscht!
- jetzt ansehen + jetzt ansehen Abbrechen