Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:zap: Allows full-screen for iframes (#524)

Alicia Sykese616d9043f2e
diff --git a/src/components/LinkItems/IframeModal.vue b/src/components/LinkItems/IframeModal.vue
index 592b5d1a..c2706957 100644
--- a/src/components/LinkItems/IframeModal.vue
+++ b/src/components/LinkItems/IframeModal.vue
@@ -3,7 +3,7 @@
classes="dashy-modal">
<div slot="top-right" @click="hide()">Close</div>
<a @click="hide()" class="close-button" title="Close">x</a>
- <iframe v-if="url" :src="url" @keydown.esc="close" class="frame"/>
+ <iframe v-if="url" :src="url" @keydown.esc="close" class="frame" allow="fullscreen" />
<div v-else class="no-url">No URL Specified</div>
</modal>
</template>
diff --git a/src/components/Workspace/WebContent.vue b/src/components/Workspace/WebContent.vue
index e7465a3a..69cc2832 100644
--- a/src/components/Workspace/WebContent.vue
+++ b/src/components/Workspace/WebContent.vue
@@ -1,6 +1,6 @@
<template>
<div class="web-content" :id="id">
- <iframe :src="url" />
+ <iframe :src="url" allow="fullscreen" />
</div>
</template>