🐛 (youtube) fix video width
This commit is contained in:
@@ -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%'
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user