Skip to content

Commit

Permalink
disabling dark background in iframe embeds for EDU (#582)
Browse files Browse the repository at this point in the history
* disabling dark background in iframe embeds for EDU

* Update BlockIframeEmbed.vue
  • Loading branch information
stephiescastle authored Aug 28, 2024
1 parent 67f4789 commit 749ec98
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
v-if="data.url"
class="print:border print:border-gray-dark"
aspect-ratio="16:9"
dark-mode
no-logo
:dark-mode="!themeStore.isEdu"
>
<div>
<iframe
Expand Down Expand Up @@ -48,6 +49,8 @@
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { mapStores } from 'pinia'
import { useThemeStore } from '../../store/theme'
import BaseImageCaption from './../BaseImageCaption/BaseImageCaption.vue'
import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
Expand Down Expand Up @@ -81,6 +84,9 @@ export default defineComponent({
this.lazyNative = false
}
}
},
computed: {
...mapStores(useThemeStore)
}
})
</script>

0 comments on commit 749ec98

Please sign in to comment.