🐛 (youtube) fix video width

This commit is contained in:
2021-04-08 22:41:07 +02:00
parent 098be04c64
commit 896d0233c5
2 changed files with 2 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
import MarkdownIt from 'markdown-it'
import markdownItClass from '@toycode/markdown-it-class'
import blockEmbedPlugin from 'markdown-it-block-embed'
import { NOTE_WIDTH } from '@/constants/note-width'
const md = new MarkdownIt({
typographer: true,
@@ -18,7 +17,7 @@ const md = new MarkdownIt({
})
.use(blockEmbedPlugin, {
youtube: {
width: NOTE_WIDTH - 80
width: '100%'
}
})

View File

@@ -1,4 +1,4 @@
import { computed, onMounted, ref, watch } from '@vue/runtime-core'
import { computed, onMounted, ref } from '@vue/runtime-core'
import { NOTE_WIDTH } from '@/constants/note-width'
import { useOverlay } from '@/hooks/useOverlay.hook'